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

{
  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" ];
    };
  };
}