iso-image.nix 606 Bytes
Newer Older
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
1
{ pkgs, ... }:
Matthias Adamczyk's avatar
Matthias Adamczyk committed
2
3

let
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
4
5
  nixos = import (pkgs.path + "/nixos") {
    configuration = { lib, modulesPath, ... }: {
Matthias Adamczyk's avatar
Matthias Adamczyk committed
6
      imports = [
Matthias Adamczyk's avatar
Fix CI    
Matthias Adamczyk committed
7
8
9
        (modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
        (modulesPath + "/installer/cd-dvd/channel.nix")
        ../common
Matthias Adamczyk's avatar
Matthias Adamczyk committed
10
11
12
13
14
15
16
17
18
19
20
      ];
      boot.loader.grub.enable = false;
      boot.kernelParams = [
        "panic=30" "boot.panic_on_fail" # reboot the machine upon fatal boot issues
      ];
      systemd.services.sshd.wantedBy = lib.mkForce [ "multi-user.target" ];
      networking.hostName = "iso";
    };
  };

in nixos.config.system.build.isoImage