summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorstuebinm2022-02-05 01:21:32 +0100
committerstuebinm2022-02-05 01:21:32 +0100
commite6718bd6298af2f6d540d97ab184fab5ab4d164b (patch)
treefc56c49ddc55d06a3e85e432643fd9db10ec0cb2 /flake.nix
parentf486a1f424d49ff0ecc73e94cd2f17146a555cd9 (diff)
add minimal home manager config
(mostly to reduce hassle / build times for smaller machines)
Diffstat (limited to '')
-rw-r--r--flake.nix22
1 files changed, 14 insertions, 8 deletions
diff --git a/flake.nix b/flake.nix
index 5549885..cf6d382 100644
--- a/flake.nix
+++ b/flake.nix
@@ -65,15 +65,21 @@
checks = builtins.mapAttrs (system: deployLib: deployLib.deployChecks self.deploy) deploy-rs.lib;
- homeConfigurations.stuebinm = inputs.home-manager.lib.homeManagerConfiguration rec {
- system = "x86_64-linux";
- homeDirectory = "/home/stuebinm";
- username = "stuebinm";
- configuration.imports = [ ./home/home.nix ];
- stateVersion = "21.03";
- extraSpecialArgs = { inherit inputs system; };
- };
+ homeConfigurations =
+ let home = root: inputs.home-manager.lib.homeManagerConfiguration rec {
+ system = "x86_64-linux";
+ homeDirectory = "/home/stuebinm";
+ username = "stuebinm";
+ configuration.imports = [ root ];
+ stateVersion = "21.03";
+ extraSpecialArgs = { inherit inputs system; };
+ };
+ in {
+ stuebinm = home ./home/home.nix;
+ stuebinm-minimal = home ./home/home-minimal.nix;
+ };
home = self.homeConfigurations.stuebinm.activationPackage;
+ home-minimal = self.homeConfigurations.stuebinm-minimal.activationPackage;
};
}