nixos/cosmic[-greeter]: minor corrections (#395521)

This commit is contained in:
Gaétan Lepage
2025-04-02 23:28:34 +02:00
committed by GitHub
2 changed files with 3 additions and 7 deletions
@@ -7,7 +7,6 @@
config,
lib,
pkgs,
utils,
...
}:
@@ -97,14 +96,11 @@ in
systemd = {
packages = [ pkgs.cosmic-session ];
user.targets = {
# TODO: remove when upstream has XDG autostart support
cosmic-session = {
wants = [ "xdg-desktop-autostart.target" ];
before = [ "xdg-desktop-autostart.target" ];
};
tray = {
description = "Cosmic Tray Target";
requires = [ "graphical-session-pre.target" ];
};
};
};
@@ -125,7 +121,7 @@ in
services.displayManager.sessionPackages = [ pkgs.cosmic-session ];
services.libinput.enable = true;
services.upower.enable = true;
# Setup PAM authentication for the `cosmic-greeter` user
# Required for screen locker
security.pam.services.cosmic-greeter = { };
# Good to have defaults
@@ -59,7 +59,7 @@ in
createHome = true;
group = "cosmic-greeter";
};
# Setup PAM authentication for the `cosmic-greeter` user
# Required for authentication
security.pam.services.cosmic-greeter = { };
hardware.graphics.enable = true;