about summary refs log tree commit diff stats
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--flake.nix40
1 files changed, 1 insertions, 39 deletions
diff --git a/flake.nix b/flake.nix
index dfb356d7..4b05e87d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -53,7 +53,6 @@
     shell-library,
     ...
   } @ inputs: let
-    # pkgs = nixpkgs.legacyPackages.x86_64-linux;
     sysLib = import ./lib {inherit pkgs shell-library;};
     system = "x86_64-linux";
     pkgs = import inputs.nixpkgs {
@@ -67,44 +66,7 @@
       };
     };
   in {
-    nixosConfigurations.tiamat = nixpkgs.lib.nixosSystem {
-      inherit system;
-      specialArgs =
-        pkgs.lib.recursiveUpdate inputs
-        sysLib;
-      modules = [
-        ./hosts/tiamat/configuration.nix
-        agenix.nixosModules.default
-
-        home-manager.nixosModules.home-manager
-        {
-          home-manager = {
-            useGlobalPkgs = true;
-            useUserPackages = true;
-            users.soispha = import ./home-manager;
-            extraSpecialArgs = {
-              inherit
-                pkgs
-                sysLib
-                strip_js_comments
-                user_js
-                system
-                neovim_config
-                impermanence
-                snap-sync
-                ;
-            };
-          };
-        }
-      ];
-    };
-
-    nixosConfigurations.mammun = self.outputs.nixosConfigurations.tiamat;
-    nixosConfigurations.spawn = nixpkgs.lib.nixosSystem {
-      specialArgs = inputs;
-      modules = [./hosts/spawn/configuration.nix];
-    };
-
+    nixosConfigurations = import ./flake/nixosConfigurations {inherit inputs system pkgs sysLib;};
     packages."${system}" = {
       install = import ./bootstrap/install {
         inherit pkgs;