38 lines
837 B
Nix
38 lines
837 B
Nix
{
|
|
pkgs,
|
|
device,
|
|
...
|
|
}: {
|
|
imports = [
|
|
../common/firefox.nix
|
|
../linux/hyprland.nix
|
|
../linux/gtk.nix
|
|
../linux/anyrun.nix
|
|
../linux/ironbar
|
|
../linux/foot.nix
|
|
../linux/mpd.nix
|
|
];
|
|
|
|
services.kdeconnect.enable = device.hasGui;
|
|
services.kdeconnect.indicator = device.hasGui;
|
|
services.swayosd.enable = device.hasGui;
|
|
services.nextcloud-client = {
|
|
enable = device.hasGui;
|
|
startInBackground = true;
|
|
};
|
|
|
|
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";
|
|
User = "${device.user}";
|
|
};
|
|
};
|
|
}
|