Files
nixos-config/modules/home/environment/userservices.nix

40 lines
987 B
Nix

{ pkgs, self, ... }:
let
keyboardSfxScript = "${self}/assets/scripts/keyboard_sound_thing.py";
in
{
systemd.user = {
timers = {
maintenanceCheck = {
Unit = {
Description = "Timer for package maintenance check";
};
Timer = {
OnCalendar = "hourly";
Persistent = true;
};
Install = {
WantedBy = [ "timers.target" ];
};
};
};
services = {
swww-daemon = {
Unit.Description = "Daemon for swww (sway wayland wallpaper manager)";
Install.WantedBy = [ "hyprland-session.target" ];
Service = {
ExecStart = "${pkgs.swww}/bin/swww-daemon";
};
};
kitty-keyboard-sounds = {
Unit.Description = "Keyboard sound effects for kitty";
Install.WantedBy = [ "hyprland-session.target" ];
Service = {
ExecStart = "${pkgs.myPython}/bin/python3 ${keyboardSfxScript}";
};
};
};
};
}