Personal Nix setup

Adjust session slices

Changed files
+34 -23
home
+2
home/base/gpg.nix
···
];
};
+
systemd.user.services.gpg-agent.Service.Slice = "session.slice";
+
# See: https://github.com/nix-community/home-manager/pull/5901
programs.zsh.initExtra = let
gpgPkg = config.programs.gpg.package;
+31 -23
home/desktop/hyprland.nix
···
};
};
-
systemd.user.services.system-shell-notifd = {
-
Install.WantedBy = [ "system-shell.service" ];
-
Service = {
-
ExecStart = "${pkgs.astal.notifd}/bin/astal-notifd -d";
-
Restart = "on-failure";
-
RestartSec = 5;
-
};
-
Unit = {
-
After = [ config.wayland.systemd.target ];
-
PartOf = [ config.wayland.systemd.target ];
-
};
-
};
+
systemd.user.services = {
+
hyprpolkitagent.Service.Slice = "session.slice";
+
hypridle.Service.Slice = "session.slice";
+
wpaperd.Service.Slice = "session.slice";
-
systemd.user.services.system-shell = {
-
Install.WantedBy = [ "graphical-session.target" ];
-
Service = {
-
ExecStart = "${system-shell}";
-
Restart = "on-failure";
-
RestartSec = 10;
-
Environment = [ "GSK_RENDERER=ngl" ];
+
system-shell-notifd = {
+
Install.WantedBy = [ "system-shell.service" ];
+
Service = {
+
ExecStart = "${pkgs.astal.notifd}/bin/astal-notifd -d";
+
Restart = "on-failure";
+
RestartSec = 5;
+
Slice = "background.slice";
+
};
+
Unit = {
+
After = [ config.wayland.systemd.target ];
+
PartOf = [ config.wayland.systemd.target ];
+
};
};
-
Unit = {
-
After = [ config.wayland.systemd.target ];
-
ConditionEnvironment = "WAYLAND_DISPLAY";
-
PartOf = [ config.wayland.systemd.target ];
+
+
system-shell = {
+
Install.WantedBy = [ "graphical-session.target" ];
+
Service = {
+
ExecStart = "${system-shell}";
+
Restart = "on-failure";
+
RestartSec = 10;
+
Environment = [ "GSK_RENDERER=ngl" ];
+
Slice = "session.slice";
+
};
+
Unit = {
+
After = [ config.wayland.systemd.target ];
+
ConditionEnvironment = "WAYLAND_DISPLAY";
+
PartOf = [ config.wayland.systemd.target ];
+
};
};
};
};
+1
home/desktop/tools.nix
···
config = mkIf cfg.tools.enable {
home.packages = with pkgs; [
+
pwvucontrol
mission-center
];
};