summaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix11
1 files changed, 7 insertions, 4 deletions
diff --git a/flake.nix b/flake.nix
index e86a636..af1560b 100644
--- a/flake.nix
+++ b/flake.nix
@@ -30,15 +30,18 @@
outputs = { self, nixpkgs, ... }@inputs: {
nixosConfigurations =
- let mkConfig = config: nixpkgs.lib.nixosSystem {
+ let mkConfig = imports: config: nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
- modules = [ config ./common/default.nix ];
+ modules = [ config ] ++ imports;
specialArgs = { inherit inputs; };
};
+ mkServer = mkConfig [ ./common/headless.nix ];
+ mkDesktop = mkConfig [ ./common/desktop.nix ];
in {
- chaski = mkConfig ./hosts/chaski/configuration.nix;
- flora = mkConfig ./hosts/flora/configuration.nix;
+ chaski = mkServer ./hosts/chaski/configuration.nix;
+ flora = mkServer ./hosts/flora/configuration.nix;
+ abbenay = mkDesktop ./hosts/abbenay/configuration.nix;
};
};
}