about summary refs log tree commit diff stats
path: root/flake/packages
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-22 12:07:54 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:31:20 +0200
commit3fc2c8d0c8c4a3c839fc12abad94ca83f4d21870 (patch)
treec0172a350b9f4bb0e3448b3f20c228c1403dbe0d /flake/packages
parentFix(hosts): Rename spawn to marduk to comply with scheme (diff)
downloadnixos-config-3fc2c8d0c8c4a3c839fc12abad94ca83f4d21870.tar.gz
nixos-config-3fc2c8d0c8c4a3c839fc12abad94ca83f4d21870.zip
Feat(flake): Modularize
Diffstat (limited to 'flake/packages')
-rw-r--r--flake/packages/default.nix40
1 files changed, 40 insertions, 0 deletions
diff --git a/flake/packages/default.nix b/flake/packages/default.nix
new file mode 100644
index 00000000..470ea05c
--- /dev/null
+++ b/flake/packages/default.nix
@@ -0,0 +1,40 @@
+{
+  nixos-generators,
+  defaultSpecialArgs,
+  pkgs,
+  shell-library,
+  ...
+}: {
+  iso = nixos-generators.nixosGenerate {
+    system = "x86_64-linux";
+    specialArgs = defaultSpecialArgs;
+    modules = [
+      ../../hosts/marduk
+    ];
+    format = "install-iso";
+  };
+  install = import ../../bootstrap/install {
+    inherit
+      pkgs
+      shell-library
+      ;
+  };
+  activate = import ../../bootstrap/activate {
+    inherit
+      pkgs
+      shell-library
+      ;
+  };
+  setup = import ../../bootstrap/setup {
+    inherit
+      pkgs
+      shell-library
+      ;
+  };
+  config_setup = import ../../bootstrap/config_setup {
+    inherit
+      pkgs
+      shell-library
+      ;
+  };
+}