aboutsummaryrefslogtreecommitdiff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix
index 2075adf..05970ce 100644
--- a/flake.nix
+++ b/flake.nix
@@ -19,6 +19,12 @@
inputs.nixpkgs.follows = "nixpkgs";
};
+ # for server that doesn't have nixos
+ system-manager = {
+ url = "github:numtide/system-manager";
+ inputs.nixpkgs.follows = "nixpkgs";
+ };
+
hjem = {
url = "github:feel-co/hjem";
inputs.nixpkgs.follows = "nixpkgs";
@@ -26,19 +32,24 @@
};
outputs = inputs: let
- mkSystem = import ./lib/nix-furnace/mkSystem.nix;
+ inherit (import ./lib/nix-furnace/mkSystem.nix) mkNixosSystem mkSystemManagerSystem;
in {
- nixosConfigurations."mercury" = mkSystem {
+ nixosConfigurations."mercury" = mkNixosSystem {
inherit inputs;
hostname = "mercury";
username = "collin";
module_types = ["hjem" "nixos"];
};
- nixosConfigurations."jupiter" = mkSystem {
+ nixosConfigurations."jupiter" = mkNixosSystem {
inherit inputs;
hostname = "jupiter";
username = "collin";
module_types = ["hjem" "home" "nixos"];
};
+
+ systemConfigs."ganymede" = mkSystemManagerSystem {
+ inherit inputs;
+ hostanme = "ganymede";
+ };
};
}