mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
cleaned up a whole bunch
This commit is contained in:
parent
2f04dc0e23
commit
a959cf3e97
17 changed files with 199 additions and 220 deletions
|
|
@ -2,11 +2,16 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
cfg = config.localModules.DM.autoLogin;
|
||||
in {
|
||||
options.localModules.DM.autoLogin = lib.mkEnableOption "";
|
||||
config = lib.mkIf cfg {
|
||||
}: {
|
||||
options.localModules.DM = {
|
||||
autoLogin = lib.mkEnableOption "";
|
||||
loginUser = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.localModules.DM.autoLogin {
|
||||
services.xserver.displayManager = {
|
||||
autoLogin = {
|
||||
enable = true;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue