1
0
nixfiles/hosts/_iso/configuration.nix

29 lines
737 B
Nix
Raw Normal View History

{ pkgs, lib, modulesPath, config, ... }:
2023-02-26 18:45:26 +01:00
{
2023-02-26 18:45:26 +01:00
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-base.nix")
../../configuration/gpg-ssh
2023-02-26 18:45:26 +01:00
];
# systemd in initrd is broken with ISOs
# Failed to mount /sysroot/iso
# https://github.com/NixOS/nixpkgs/issues/327187
boot.initrd.systemd.enable = false;
2023-02-26 18:45:26 +01:00
networking.hostName = "isowo";
2025-01-16 19:15:06 +01:00
isoImage.isoBaseName = lib.mkForce "nixos-isowo";
2023-02-26 22:32:26 +01:00
environment.systemPackages = with pkgs; [
2023-02-26 22:32:26 +01:00
nixfiles-auto-install
];
2025-01-16 19:15:06 +01:00
# 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;
2025-01-16 19:15:06 +01:00
services.openssh.settings = {
PermitRootLogin = lib.mkForce "yes";
};
2023-02-26 18:45:26 +01:00
}