fix(common): don't create greeter user when greetd isnt enabled
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
9698b40420
commit
cb77ae2c87
1 changed files with 15 additions and 13 deletions
|
@ -75,7 +75,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
home-manager.users = let
|
||||
home-manager = let
|
||||
inherit (config.vars) mainUser;
|
||||
mainUserConf = config.home-manager.users.${mainUser};
|
||||
|
||||
|
@ -107,18 +107,20 @@
|
|||
]);
|
||||
};
|
||||
in {
|
||||
root =
|
||||
default
|
||||
// {
|
||||
home.stateVersion = mainUserConf.home.stateVersion;
|
||||
};
|
||||
users = {
|
||||
root =
|
||||
default
|
||||
// {
|
||||
home.stateVersion = mainUserConf.home.stateVersion;
|
||||
};
|
||||
greeter =
|
||||
lib.mkIf (config.services.greetd.enable)
|
||||
(default
|
||||
// {
|
||||
home.stateVersion = mainUserConf.home.stateVersion;
|
||||
});
|
||||
|
||||
greeter =
|
||||
default
|
||||
// {
|
||||
home.stateVersion = mainUserConf.home.stateVersion;
|
||||
};
|
||||
|
||||
${mainUser} = default;
|
||||
${mainUser} = default;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue