diff options
| -rw-r--r-- | hosts/iso/default.nix | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/hosts/iso/default.nix b/hosts/iso/default.nix new file mode 100644 index 0000000..334b31d --- /dev/null +++ b/hosts/iso/default.nix @@ -0,0 +1,47 @@ +{ + modulesPath, + pkgs, + ... +}: +{ + imports = [ + "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" + ]; + + users = { + users.isabella = { + isNormalUser = true; + description = "Isabella Morgana Bastaja"; + extraGroups = [ "wheel" ]; + initialPassword = "isabella"; + openssh.authorizedKeys.keys = [ + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIM4aG8NI25TgjcDevjsY/Y6d3iYsQxSEtIpsqprMHmad osiris@underworld" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPUcWGKF3uIf/gqbo1/lxb8XLoi67Bc2tVi1Bd/Ddhoz isabella@wonderland" + "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEvtzeVHgenfSUrpZeyZBoBTzN96rdYMy3KEJoRXja0O isabella@nyaan" + ]; + }; + mutableUsers = false; + }; + console.keyMap = "us"; + + services.openssh = { + enable = true; + ports = [ 22 ]; + openFirewall = true; + settings = { + PermitRootLogin = "no"; + PasswordAuthentication = false; + AllowUsers = [ + "isabella" + ]; + }; + }; + + environment = { + systemPackages = [ + pkgs.git + pkgs.helix + pkgs.disko + ]; + }; +} |
