diff options
Diffstat (limited to 'users/glittershark/system')
-rw-r--r-- | users/glittershark/system/system/default.nix | 9 | ||||
-rw-r--r-- | users/glittershark/system/system/iso.nix | 17 |
2 files changed, 24 insertions, 2 deletions
diff --git a/users/glittershark/system/system/default.nix b/users/glittershark/system/system/default.nix index dd84dc71db27..12cde445fe0b 100644 --- a/users/glittershark/system/system/default.nix +++ b/users/glittershark/system/system/default.nix @@ -1,4 +1,4 @@ -{ depot, pkgs, ... }: +args @ { depot, pkgs, ... }: rec { chupacabra = import ./machines/chupacabra.nix; @@ -7,8 +7,13 @@ rec { configuration = chupacabra; }).system; + iso = import ./iso.nix args; + # Build chupacabra in CI - meta.targets = [ "chupacabraSystem" ]; + meta.targets = [ + "chupacabraSystem" + "iso" + ]; rebuilder = let 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 |