about summary refs log tree commit diff stats
path: root/flake/packages
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-07-01 18:45:39 +0200
committerSoispha <soispha@vhack.eu>2023-07-10 16:44:12 +0200
commitc3d2c88eed96b82fa8e83e8b6ee53c414a0e4431 (patch)
treea5a9553ba5cbf5b6095ae575ecca27356b73c96d /flake/packages
parentFeat(system/disks): Add luks partition (diff)
downloadnixos-config-c3d2c88eed96b82fa8e83e8b6ee53c414a0e4431.tar.gz
nixos-config-c3d2c88eed96b82fa8e83e8b6ee53c414a0e4431.zip
Refactor(bootstrap): Use disko
Diffstat (limited to 'flake/packages')
-rw-r--r--flake/packages/default.nix49
1 files changed, 14 insertions, 35 deletions
diff --git a/flake/packages/default.nix b/flake/packages/default.nix
index 8ca00e98..0c3d6c1b 100644
--- a/flake/packages/default.nix
+++ b/flake/packages/default.nix
@@ -4,39 +4,18 @@
   defaultSpecialArgs,
   pkgs,
   sysLib,
-  lib,
   ...
-}: {
-  iso = nixos-generators.nixosGenerate {
-    system = "x86_64-linux";
-    specialArgs = defaultSpecialArgs;
-    modules = [
-      ../../hosts/marduk
-    ];
-    format = "install-iso";
-  };
-  install = import ../../bootstrap/install {
-    inherit
-      pkgs
-      sysLib
-      ;
-  };
-  activate = import ../../bootstrap/activate {
-    inherit
-      pkgs
-      sysLib
-      ;
-  };
-  setup = import ../../bootstrap/setup {
-    inherit
-      pkgs
-      sysLib
-      ;
-  };
-  config_setup = import ../../bootstrap/config_setup {
-    inherit
-      pkgs
-      sysLib
-      ;
-  };
-}
+}: let
+  output = import ../../bootstrap {inherit pkgs sysLib;};
+in
+  {
+    iso = nixos-generators.nixosGenerate {
+      system = "x86_64-linux";
+      specialArgs = defaultSpecialArgs;
+      modules = [
+        ../../hosts/marduk
+      ];
+      format = "install-iso";
+    };
+  }
+  // output