homemanager: fix passthrough of options

This commit is contained in:
Christoph Hollizeck 2024-11-24 00:00:03 +01:00
parent 8b78c651b6
commit 9d1f799c01
Signed by: Daholli
GPG key ID: 249300664F2AF2C7
6 changed files with 18 additions and 49 deletions

View file

@ -20,15 +20,15 @@ in
};
config = {
${namespace}.home.extraOptions = {
home.stateVersion = config.system.stateVersion;
home.file = mkAliasDefinitions options.${namespace}.home.file;
xdg.enable = true;
xdg.configFile = mkAliasDefinitions options.${namespace}.home.configFile;
};
snowfallorg.users.${config.${namespace}.user.name}.home.config =
config.${namespace}.home.extraOptions;
snowfallorg.users.${config.${namespace}.user.name}.home.config = mkMerge [
{
home.stateVersion = config.system.stateVersion;
home.file = mkAliasDefinitions options.${namespace}.home.file;
xdg.enable = true;
xdg.configFile = mkAliasDefinitions options.${namespace}.home.configFile;
}
config.${namespace}.home.extraOptions
];
home-manager = {
useUserPackages = true;