mkStandardFeatureFlake: fix accessing option value in config
This commit is contained in:
1 file changed
+2
-2
@@ -57,13 +57,13 @@
|
||||
})) ];
|
||||
|
||||
flake.nixosModules.${moduleName} = { lib, config, ... }: {
|
||||
config = lib.mkIf (config.${optionName}) (mkIfElse (config.features.nixos.home-manager.enable) {
|
||||
config = lib.mkIf (attrByStrPath optionName config) (mkIfElse (config.features.nixos.home-manager.enable) {
|
||||
home-manager.users.${config.info.userName}.${optionName} = lib.mkDefault true;
|
||||
} systemConfig);
|
||||
};
|
||||
|
||||
flake.homeModules.${moduleName} = { lib, config, ... }: {
|
||||
config = lib.mkIf (config.${optionName}) homeConfig;
|
||||
config = lib.mkIf (attrByStrPath optionName config) homeConfig;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user