fix(common): don't create greeter user when greetd isnt enabled
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-03-26 15:59:42 -04:00
parent 9698b40420
commit cb77ae2c87

View file

@ -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;
};
};
}