diff --git a/hosts/nixos/Incarceron/default.nix b/hosts/nixos/Incarceron/default.nix index 910c2ba..478e845 100644 --- a/hosts/nixos/Incarceron/default.nix +++ b/hosts/nixos/Incarceron/default.nix @@ -21,7 +21,7 @@ _module.args = { disk = "/dev/nvme0n1"; withSwap = true; - swapSize = 8; + swapSize = "8"; }; } diff --git a/nixos-bootstrap/installer-config.nix b/nixos-bootstrap/installer-config.nix index cfe1175..d37f40c 100644 --- a/nixos-bootstrap/installer-config.nix +++ b/nixos-bootstrap/installer-config.nix @@ -5,7 +5,9 @@ modulesPath, lib, ... -}: { +}: let + loginKey = builtins.readFile ./installer.pub; +in { imports = [ inputs.disko.nixosModules.disko "${modulesPath}/installer/cd-dvd/installation-cd-minimal.nix" @@ -29,4 +31,12 @@ networkmanager.enable = true; enableIPv6 = false; }; + + users.users.nixos.openssh.authorizedKeys.keys = [loginKey]; + users.users.root.openssh.authorizedKeys.keys = [loginKey]; + + services.openssh = { + enable = true; + openFirewall = true; + }; } diff --git a/nixos-bootstrap/installer.pub b/nixos-bootstrap/installer.pub new file mode 100644 index 0000000..5aaaa33 --- /dev/null +++ b/nixos-bootstrap/installer.pub @@ -0,0 +1 @@ +ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILitXCbWKzO56YIc3usTK1NS5M61ZNvATly06MFqb/8m nixos install