summaryrefslogtreecommitdiff
path: root/nixos/modules/features/swingmusic/default.nix
blob: e666b7215546f8a9ecd4b5e109a1f0bb4a885dc9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ ... }:

{
  # Swing Music: self-hosted local music server. Built separately and placed
  # in the user's home; this unit just turns it into a managed session service.
  systemd.user.services.swingmusic = {
    description = "Swing Music Local Server";
    wantedBy = [ "graphical-session.target" ];
    after = [ "graphical-session.target" ];
    serviceConfig = {
      ExecStart = "/home/seraphim/.swingmusic/swingmusic";
      Restart = "on-failure";
      WorkingDirectory = "/home/seraphim";
      NoNewPrivileges = true;
      PrivateTmp = true;
      ProtectSystem = "strict";
      ProtectHome = "false";
      RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
    };
  };
}