Files
dotfiles/linux/default.nix
2024-11-22 20:27:10 +05:30

41 lines
971 B
Nix

{
pkgs,
lib,
device,
...
}: {
imports =
[]
++ (lib.optionals device.hasGui [
../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.swaync.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}";
# };
# };
}