diff options
author | Linnnus <[email protected]> | 2025-02-21 18:03:30 +0100 |
---|---|---|
committer | Linnnus <[email protected]> | 2025-02-21 18:03:52 +0100 |
commit | 3d9cf579a3e4d40221e08c36048e1f0d1de15ed0 (patch) | |
tree | 4205852e76de53fcaf675ce68f6ffa0285c30f4a /hosts/muhammed/dev-vm/configuration/ssh.nix | |
parent | 3900ce318bd6a656822f3cfebc5a2c1c39ef0bea (diff) |
muhammed: Remove dev-vm
Diffstat (limited to 'hosts/muhammed/dev-vm/configuration/ssh.nix')
-rw-r--r-- | hosts/muhammed/dev-vm/configuration/ssh.nix | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/hosts/muhammed/dev-vm/configuration/ssh.nix b/hosts/muhammed/dev-vm/configuration/ssh.nix deleted file mode 100644 index fbafc62..0000000 --- a/hosts/muhammed/dev-vm/configuration/ssh.nix +++ /dev/null @@ -1,24 +0,0 @@ -{...}: { - services.openssh.enable = true; - - # Allow incomming connections from the VM host. - users.users.linus.openssh.authorizedKeys.keyFiles = [(toString ../keys/ssh_vmhost_ed25519_key.pub)]; - - # Don't generate any host keys automatically. We will use these hardcoded - # ones instead. Storing keys in plaintext would normally be SUPER SUPER BAD - # but in this case it doesn't matter, since it's just a local VM. - services.openssh.hostKeys = []; - - # Install the very public private key. - environment.etc = { - # Note the seemingly reversed file names: "host" in this filename is relative to the VM guest. - "ssh/ssh_host_ed25519_key" = { - mode = "0600"; - source = ../keys/ssh_vmguest_ed25519_key; - }; - "ssh/ssh_host_ed25519_key.pub" = { - mode = "0644"; - source = ../keys/ssh_vmguest_ed25519_key.pub; - }; - }; -} |