Split some stuff into fragments

This commit is contained in:
NullBite 2023-12-28 03:03:42 -05:00
parent 55bb978848
commit 698d9007bb
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A
5 changed files with 41 additions and 14 deletions

View File

@ -16,8 +16,6 @@
modules = [
./hosts/slab/configuration.nix
./hosts/slab/nvidia-optimus.nix
./roles/base.nix
./roles/me.nix
./roles/remote.nix
./roles/desktop.nix
];

7
fragments/multimedia.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ...}:
{
environment.systemPackages = with pkgs; [
mpv
gimp-with-plugins
];
}

22
fragments/sound.nix Normal file
View File

@ -0,0 +1,22 @@
{ config, lib, pkgs, ...}:
{
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
environment.systemPackages = with pkgs; [
qpwgraph
pavucontrol
ncpamixer
pulsemixer
easyeffects
];
}

7
roles/base.nix Normal file
View File

@ -0,0 +1,7 @@
{ config, lib, pkgs, ...}:
{
imports = [
../fragments/base.nix
../fragments/me.nix
];
}

View File

@ -1,6 +1,11 @@
{ config, lib, pkgs, ...}:
{
imports = [
./base.nix
../fragments/sound.nix
];
# Enable the X11 windowing system.
services.xserver.enable = true;
@ -13,18 +18,6 @@
# Enable CUPS to print documents.
services.printing.enable = true;
# Enable sound.
# sound.enable = true;
# hardware.pulseaudio.enable = true;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa.enable = true;
alsa.support32Bit = true;
pulse.enable = true;
jack.enable = true;
};
users.users.nullbite = {
packages = with pkgs; [
firefox