summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
authorChristian <[email protected]>2026-01-18 21:17:14 -0600
committerChristian <[email protected]>2026-01-18 21:41:12 -0600
commit87be0d3dd54e71f33b9d8a757273ae4f2170e3f0 (patch)
tree758db0c339023ef7bdae276dab85770a31c6644f /flake.nix
parent44adb7d61e71370acb7d839e6b76270f9a081939 (diff)
Multiple configs
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix30
1 files changed, 11 insertions, 19 deletions
diff --git a/flake.nix b/flake.nix
index c7d4742..478fc63 100644
--- a/flake.nix
+++ b/flake.nix
@@ -15,25 +15,17 @@
};
outputs = { self, nixpkgs, home-manager, nix-index-database, ... }@inputs: {
- nixosConfigurations.nixos = nixpkgs.lib.nixosSystem {
- system = "x86_64-linux";
- specialArgs = { inherit inputs; };
-
- modules = [
- ./configuration.nix
-
- nix-index-database.nixosModules.nix-index
-
- home-manager.nixosModules.home-manager
- {
- home-manager.useGlobalPkgs = true;
- home-manager.useUserPackages = true;
-
- home-manager.users.christian = import ./home.nix;
-
- home-manager.extraSpecialArgs = { inherit inputs; };
- }
- ];
+ nixosConfigurations = {
+ hyper-v = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ specialArgs = { inherit inputs; };
+ modules = [ ./hosts/hyper-v/configuration.nix ];
+ };
+ desktop = nixpkgs.lib.nixosSystem {
+ system = "x86_64-linux";
+ specialArgs = { inherit inputs; };
+ modules = [ ./hosts/desktop/configuration.nix ];
+ };
};
};
}