aboutsummaryrefslogtreecommitdiff
path: root/system/services.nix
blob: c05e3b1b8f2df5ba4d0747456df1dfa2788b1015 (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
{pkgs, ...}: {
  security.pam.sshAgentAuth.enable = true;

  time.timeZone = "Europe/Prague";

  services = {
    displayManager.ly.enable = true;
    printing.enable = true;
    libinput.enable = true;
    openssh.enable = true;
    tailscale.enable = true;
    gnome = {
      gnome-keyring.enable = true;
      gcr-ssh-agent.enable = false;
    };
    # Setup MPD as the backend of RMPC
    mpd = {
      enable = true;
      user = "mun";
      musicDirectory = "/home/mun/Music";
      extraConfig = ''
        audio_output {
        	type "pipewire"
              	name "PipeWire"
        }
         audio_output {
          type   "fifo"
          name   "my_fifo"
          path   "/tmp/mpd.fifo"
          format "44100:16:2"
        }
      '';
    };
  };
  systemd.services.mpd.environment.XDG_RUNTIME_DIR = "/run/user/1000";
}