update test system config
This commit is contained in:
parent
67c2250833
commit
7e3457a724
8 changed files with 117 additions and 43 deletions
32
systems/installer.nix
Normal file
32
systems/installer.nix
Normal 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;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue