aboutsummaryrefslogtreecommitdiff
path: root/nixos/machine/adm-mpd.nix
blob: 45855e175f1c732ced15addba87b1510219926ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ 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";
      };
    };

    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;
    #};
    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;
      };
    };

  };

}