diff options
| author | Tim Keller <tjk@tjkeller.xyz> | 2026-05-11 17:20:52 -0500 |
|---|---|---|
| committer | Tim Keller <tjk@tjkeller.xyz> | 2026-05-11 17:20:52 -0500 |
| commit | 4e4ec16117af9dbf1043e8b9e82e908e0efbfa75 (patch) | |
| tree | 235e7a77f52e380720ebc6f7d7491ea87f421530 /lib/home-manager/mkprofile.nix | |
| parent | 9c851cb90d57ec2d2f4041cba3b684974d462231 (diff) | |
| download | nixos-4e4ec16117af9dbf1043e8b9e82e908e0efbfa75.tar.xz nixos-4e4ec16117af9dbf1043e8b9e82e908e0efbfa75.zip | |
new standalone home-manager config in flakestandalone-home
Diffstat (limited to 'lib/home-manager/mkprofile.nix')
| -rw-r--r-- | lib/home-manager/mkprofile.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/home-manager/mkprofile.nix b/lib/home-manager/mkprofile.nix new file mode 100644 index 0000000..dae4d60 --- /dev/null +++ b/lib/home-manager/mkprofile.nix @@ -0,0 +1,9 @@ +profileName: nixosConfig: homeConfig: { config, lib, ... }: let + cfg = config._archetypes.profiles.${profileName}; +in { + options._archetypes.profiles.${profileName} = { + enable = lib.mkEnableOption "enable (standalone) home-manager profile ${profileName} for the configured user"; + }; + + config = lib.mkIf cfg.enable (lib.mkMerge [ homeConfig ]); +} |
