mkStandardFeature: fix method of overriding home-manager option
This commit is contained in:
1 file changed
+1
-1
@@ -58,7 +58,7 @@
|
|||||||
|
|
||||||
nixosModule = { config, optionName }: systemConfig: {
|
nixosModule = { config, optionName }: systemConfig: {
|
||||||
config = lib.mkIf (attrByStrPath optionName config) (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;
|
home-manager.users.${config.info.userName} = setAttrByStrPath optionName (lib.mkDefault true);
|
||||||
} systemConfig);
|
} systemConfig);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user