update test system config

This commit is contained in:
lilly 2025-02-07 15:02:33 +01:00
commit 7e3457a724
Signed by: lilly
SSH key fingerprint: SHA256:y9T5GFw2A20WVklhetIxG1+kcg/Ce0shnQmbu1LQ37g
8 changed files with 117 additions and 43 deletions

32
systems/installer.nix Normal file
View file

@ -0,0 +1,32 @@
{
config,
modulesPath,
lib,
pkgs,
...
}:
{
imports = [
(modulesPath + "/installer/cd-dvd/installation-cd-minimal.nix")
];
networking.hostName = lib.mkForce "eh22-nixos-installer";
networking.wireless.enable = false;
system.installer.channel.enable = true;
environment.systemPackages = with pkgs; [
disko
];
# configure our own user account in the installer
services.getty.autologinUser = lib.mkForce "noc";
# conflict resolutions
services.openssh.settings.PermitRootLogin = lib.mkForce "no";
boot.initrd.systemd.enable = lib.mkForce false;
boot.loader.grub.enable = lib.mkForce false;
# this is only okay because the installer does not have any persistence so no data can be in an old/incompatible format
system.stateVersion = config.system.nixos.release;
home-manager.users.noc.home.stateVersion = config.system.stateVersion;
}