aboutsummaryrefslogtreecommitdiff
path: root/colmena/cobalt
diff options
context:
space:
mode:
Diffstat (limited to 'colmena/cobalt')
-rw-r--r--colmena/cobalt/configuration.nix17
1 files changed, 14 insertions, 3 deletions
diff --git a/colmena/cobalt/configuration.nix b/colmena/cobalt/configuration.nix
index b3d05b9..e115859 100644
--- a/colmena/cobalt/configuration.nix
+++ b/colmena/cobalt/configuration.nix
@@ -109,11 +109,22 @@ in
users.users.root.openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDi7GGOGVj1Y5Sc1EW6zEdrp78dS6hvmS348pqu9dUsB openpgp:0x6BE7BD6F" ];
services.openssh.enable = true;
services.openssh.permitRootLogin = "prohibit-password";
-
- nix.nixPath = [
- "nixos-config=/persist/etc/nixos"
+ # mkdir -p /persist/etc/ssh
+ services.openssh.hostKeys = [
+ {
+ path = "/persist/ssh/ssh_host_ed25519_key";
+ type = "ed25519";
+ }
+ {
+ path = "/persist/ssh/ssh_host_rsa_key";
+ type = "rsa";
+ bits = 4096;
+ }
];
+ # impermanence requirement
+ fileSystems."/persist".neededForBoot = true;
+
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. It‘s perfectly fine and recommended to leave