diff options
author | Karel Kočí <cynerd@email.cz> | 2022-08-08 10:13:19 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-08-08 10:13:19 +0200 |
commit | 3649c233b73d03370779a8f58c6613a412979e8b (patch) | |
tree | f095d25c9d018802688e4cd56e807093eadd11ac /nixos/machine/adm-mpd.nix | |
parent | 970c8596e86b8bb3ebff5e76e152fa5acdd65f98 (diff) | |
download | nixos-personal-3649c233b73d03370779a8f58c6613a412979e8b.tar.gz nixos-personal-3649c233b73d03370779a8f58c6613a412979e8b.tar.bz2 nixos-personal-3649c233b73d03370779a8f58c6613a412979e8b.zip |
Improve devices and few more machines
Diffstat (limited to 'nixos/machine/adm-mpd.nix')
-rw-r--r-- | nixos/machine/adm-mpd.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/nixos/machine/adm-mpd.nix b/nixos/machine/adm-mpd.nix index 3e103e1..aa85445 100644 --- a/nixos/machine/adm-mpd.nix +++ b/nixos/machine/adm-mpd.nix @@ -5,6 +5,7 @@ with lib; { config = { + fileSystems = { "/" = { device = "/dev/mmcblk0p2"; @@ -18,6 +19,35 @@ with lib; device = "/dev/mmcblk0p1"; }; }; + + networking.wireless = { + enable = true; + networks = filterAttrs (n: v: n == "Nela") config.secrets.wifiNetworks; + environmentFile = "/run/secrets/wifi.env"; + userControlled.enable = true; + }; + + services.pipewire = { + enable = true; + alsa.enable = true; + pulse.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; + }; + }; + }; } |