[feat] Add nil for *.nix

This commit is contained in:
uttarayan21
2024-02-20 18:57:18 +05:30
parent 9983668d75
commit 3622d00200
7 changed files with 44 additions and 15 deletions

View File

@@ -7,4 +7,16 @@
../linux/ironbar.nix
../linux/foot.nix
];
systemd.user.services.spotify-player = {
Install = { WantedBy = [ "graphical-session.target" ]; };
Unit = {
Description = "Spotify Player Daemon";
After = [ "graphical-session.target" ];
};
Service = {
ExecStart = "${pkgs.spotify-player}/bin/spotify_player -d";
Restart = "on-failure";
RestartSec = "5";
};
};
}