about summary refs log tree commit diff
path: root/users/glittershark/system/system/iso.nix
diff options
context:
space:
mode:
Diffstat (limited to 'users/glittershark/system/system/iso.nix')
-rw-r--r--users/glittershark/system/system/iso.nix17
1 files changed, 17 insertions, 0 deletions
diff --git a/users/glittershark/system/system/iso.nix b/users/glittershark/system/system/iso.nix
new file mode 100644
index 000000000000..056922ee1e82
--- /dev/null
+++ b/users/glittershark/system/system/iso.nix
@@ -0,0 +1,17 @@
+{ pkgs, ... }:
+
+let
+  configuration = { ... }: {
+    imports = [
+      "${pkgs.nixpkgsSrc}/nixos/modules/installer/cd-dvd/installation-cd-minimal-new-kernel.nix"
+      "${pkgs.nixpkgsSrc}/nixos/modules/installer/cd-dvd/channel.nix"
+    ];
+
+    networking.networkmanager.enable = true;
+    networking.useDHCP = false;
+    networking.firewall.enable = false;
+    networking.wireless.enable = pkgs.lib.mkForce false;
+  };
+in (pkgs.nixos {
+  inherit configuration;
+}).config.system.build.isoImage