diff options
author | Karel Kočí <cynerd@email.cz> | 2024-03-14 09:35:13 +0100 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-03-14 09:35:13 +0100 |
commit | b2ec9599373c7e0f5428694c5712c8fc0be06264 (patch) | |
tree | 331d4c70ad7664fb9fdbe9ce1050de02e231e6a2 /nixos/machine/adm-mpd.nix | |
parent | 927fab5c6ec204ce2d7ddac3901519c023331c89 (diff) | |
download | nixos-personal-b2ec9599373c7e0f5428694c5712c8fc0be06264.tar.gz nixos-personal-b2ec9599373c7e0f5428694c5712c8fc0be06264.tar.bz2 nixos-personal-b2ec9599373c7e0f5428694c5712c8fc0be06264.zip |
Load of updates and module simplification
Diffstat (limited to 'nixos/machine/adm-mpd.nix')
-rw-r--r-- | nixos/machine/adm-mpd.nix | 88 |
1 files changed, 43 insertions, 45 deletions
diff --git a/nixos/machine/adm-mpd.nix b/nixos/machine/adm-mpd.nix index a35c944..ae2ea01 100644 --- a/nixos/machine/adm-mpd.nix +++ b/nixos/machine/adm-mpd.nix @@ -1,56 +1,54 @@ { config, lib, - pkgs, ... -}: -with lib; { - config = { - fileSystems = { - "/" = { - device = "/dev/mmcblk0p2"; - options = ["compress=lzo" "subvol=@nix"]; - }; - "/home" = { - device = "/dev/mmcblk0p2"; - options = ["compress=lzo" "subvol=@home"]; - }; - "/boot" = { - device = "/dev/mmcblk0p1"; - }; +}: let + inherit (lib) filterAttrs; +in { + fileSystems = { + "/" = { + device = "/dev/mmcblk0p2"; + options = ["compress=lzo" "subvol=@nix"]; }; - - networking.wireless = { - enable = true; - networks = filterAttrs (n: v: n == "Nela") config.secrets.wifiNetworks; - environmentFile = "/run/secrets/wifi.env"; - userControlled.enable = true; + "/home" = { + device = "/dev/mmcblk0p2"; + options = ["compress=lzo" "subvol=@home"]; }; - - #services.pipewire = { - #enable = true; - #alsa.enable = true; - #pulse.enable = true; - #}; - hardware.pulseaudio = { - enable = true; - systemWide = true; - zeroconf.publish.enable = true; + "/boot" = { + device = "/dev/mmcblk0p1"; }; + }; + + networking.wireless = { + enable = true; + networks = filterAttrs (n: _: n == "Nela") config.secrets.wifiNetworks; + environmentFile = "/run/secrets/wifi.env"; + userControlled.enable = true; + }; + + #services.pipewire = { + #enable = true; + #alsa.enable = true; + #pulse.enable = true; + #}; + hardware.pulseaudio = { + enable = true; + systemWide = true; + zeroconf.publish.enable = true; + }; - services.spotifyd = { - enable = true; - settings.global = { - device_name = "Adámkovi"; - device = "sysdefault"; - mixer = "Master"; - bitrate = 320; - cache_path = "/var/cahe/spotify"; - no_audio_cache = true; - volume_normalisation = true; - normalisation_pregain = -10; - initial_volume = 60; - }; + services.spotifyd = { + enable = true; + settings.global = { + device_name = "Adámkovi"; + device = "sysdefault"; + mixer = "Master"; + bitrate = 320; + cache_path = "/var/cahe/spotify"; + no_audio_cache = true; + volume_normalisation = true; + normalisation_pregain = -10; + initial_volume = 60; }; }; } |