{ pkgs, lib, modulesPath, config, ... }:

{
  imports = [
    (modulesPath + "/installer/cd-dvd/installation-cd-base.nix")
    ../../configuration/gpg-ssh
  ];

  profiles.clerie.network-fallback-dhcp.enable = true;

  # systemd in initrd is broken with ISOs
  # Failed to mount /sysroot/iso
  # https://github.com/NixOS/nixpkgs/issues/327187
  boot.initrd.systemd.enable = false;

  networking.useDHCP = false;
  systemd.network.enable = true;

  networking.hostName = "isowo";
  isoImage.isoBaseName = lib.mkForce "nixos-isowo";

  environment.systemPackages = with pkgs; [
    nixfiles-auto-install
  ];

  # Allow user clerie to log in as root directly with ssh keys
  users.users.root.openssh.authorizedKeys.keys = config.users.users.clerie.openssh.authorizedKeys.keys;

  services.openssh.settings = {
    PermitRootLogin = lib.mkForce "yes";
  };

}