mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 13:43:56 -05:00
greetd: fixed failure to start with blank initial_session
This commit is contained in:
parent
fe1ee27b8f
commit
fb75cd9ec9
|
@ -29,17 +29,21 @@
|
||||||
services = {
|
services = {
|
||||||
greetd = {
|
greetd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = rec {
|
settings =
|
||||||
|
if config.alyraffauf.desktop.greetd.autologin.enable
|
||||||
|
then {
|
||||||
default_session = {
|
default_session = {
|
||||||
command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}";
|
command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}";
|
||||||
};
|
};
|
||||||
initial_session =
|
initial_session = {
|
||||||
if config.alyraffauf.desktop.greetd.autologin.enable
|
|
||||||
then {
|
|
||||||
command = config.alyraffauf.desktop.greetd.session;
|
command = config.alyraffauf.desktop.greetd.session;
|
||||||
user = config.alyraffauf.desktop.greetd.autologin.user;
|
user = config.alyraffauf.desktop.greetd.autologin.user;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
else {};
|
else {
|
||||||
|
default_session = {
|
||||||
|
command = lib.mkDefault "${pkgs.greetd.tuigreet}/bin/tuigreet --asterisks -g 'Welcome to NixOS ${config.system.nixos.release}' --time --remember --cmd ${config.alyraffauf.desktop.greetd.session}";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue