gnome: add autologin option
This commit is contained in:
parent
6f6ccf4c46
commit
eb418c2ea8
1 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,7 @@ with lib; let
|
|||
in {
|
||||
options.custom.desktops.gnome = {
|
||||
enable = mkOption {default = false;};
|
||||
auto = mkOption {default = false;};
|
||||
gdm = mkOption {default = true;};
|
||||
minimal = mkOption {default = false;};
|
||||
};
|
||||
|
@ -26,6 +27,11 @@ in {
|
|||
core-os-services.enable = mkIf cfg.minimal true;
|
||||
gnome-browser-connector.enable = !cfg.minimal;
|
||||
};
|
||||
|
||||
displayManager.autoLogin = {
|
||||
enable = cfg.auto;
|
||||
user = config.custom.username;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue