removed settings.username

This commit is contained in:
Gerg-L 2023-04-21 10:15:15 -04:00
parent 60206e95e1
commit 4f9c434347
11 changed files with 39 additions and 43 deletions

View file

@ -2,7 +2,6 @@ _: {
config,
lib,
options,
settings,
...
}:
with lib; let
@ -13,7 +12,7 @@ in {
services.xserver.displayManager = {
autoLogin = {
enable = true;
user = settings.username;
user = config.localModules.DM.loginUser;
};
};
};

View file

@ -2,5 +2,6 @@ inputs: {
imports = [
(import ./autoLogin.nix inputs)
(import ./lightDM.nix inputs)
(import ./misc.nix inputs)
];
}

View file

@ -2,7 +2,6 @@ _: {
config,
lib,
options,
settings,
self,
...
}:
@ -21,7 +20,7 @@ in {
extraConfig = "minimum-vt=1";
greeters.mini = {
enable = true;
user = settings.username;
user = config.localModules.DM.loginUser;
extraConfig = ''
[greeter]
show-password-label = false

11
modules/DM/misc.nix Normal file
View file

@ -0,0 +1,11 @@
_: {
options,
lib,
...
}:
with lib; {
options.localModules.DM.loginUser = mkOption {
type = types.nullOr types.str;
default = null;
};
}