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