diff options
| author | seraphim <18ycm9tx@anonaddy.me> | 2026-07-29 22:09:05 +0700 |
|---|---|---|
| committer | seraphim <18ycm9tx@anonaddy.me> | 2026-07-29 22:09:05 +0700 |
| commit | 73ddb338cd7542f9569a9ab5cb0481b4f0636710 (patch) | |
| tree | 559d8c542d6e965e674a46c9451efc1cb80f203a /nixos/modules/features/swingmusic | |
| parent | abd12d161f0aaac458abeb139556ea5ccc1fcae8 (diff) | |
.
Diffstat (limited to 'nixos/modules/features/swingmusic')
| -rw-r--r-- | nixos/modules/features/swingmusic/default.nix | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixos/modules/features/swingmusic/default.nix b/nixos/modules/features/swingmusic/default.nix new file mode 100644 index 0000000..6c3bc90 --- /dev/null +++ b/nixos/modules/features/swingmusic/default.nix @@ -0,0 +1,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" ]; + }; + }; +}
\ No newline at end of file |
