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;
|
inherit (config.vars) mainUser;
|
||||||
mainUserConf = config.home-manager.users.${mainUser};
|
mainUserConf = config.home-manager.users.${mainUser};
|
||||||
|
|
||||||
|
@ -107,18 +107,20 @@
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
in {
|
in {
|
||||||
|
users = {
|
||||||
root =
|
root =
|
||||||
default
|
default
|
||||||
// {
|
// {
|
||||||
home.stateVersion = mainUserConf.home.stateVersion;
|
home.stateVersion = mainUserConf.home.stateVersion;
|
||||||
};
|
};
|
||||||
|
|
||||||
greeter =
|
greeter =
|
||||||
default
|
lib.mkIf (config.services.greetd.enable)
|
||||||
|
(default
|
||||||
// {
|
// {
|
||||||
home.stateVersion = mainUserConf.home.stateVersion;
|
home.stateVersion = mainUserConf.home.stateVersion;
|
||||||
};
|
});
|
||||||
|
|
||||||
${mainUser} = default;
|
${mainUser} = default;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue