We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a27dc90 + e51150d commit e39c279Copy full SHA for e39c279
nixos/modules/services/display-managers/cosmic-greeter.nix
@@ -12,6 +12,7 @@
12
13
let
14
cfg = config.services.displayManager.cosmic-greeter;
15
+ cfgAutoLogin = config.services.displayManager.autoLogin;
16
in
17
18
{
@@ -35,6 +36,10 @@ in
35
36
user = "cosmic-greeter";
37
command = ''${lib.getExe' pkgs.coreutils "env"} XCURSOR_THEME="''${XCURSOR_THEME:-Pop}" systemd-cat -t cosmic-greeter ${lib.getExe pkgs.cosmic-comp} ${lib.getExe cfg.package}'';
38
};
39
+ initial_session = lib.mkIf (cfgAutoLogin.enable && (cfgAutoLogin.user != null)) {
40
+ user = cfgAutoLogin.user;
41
+ command = ''${lib.getExe' pkgs.coreutils "env"} XCURSOR_THEME="''${XCURSOR_THEME:-Pop}" systemd-cat -t cosmic-session ${lib.getExe pkgs.cosmic-session}'';
42
+ };
43
44
45
0 commit comments