summaryrefslogtreecommitdiff
path: root/system/sshd.nix
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-06-24 11:51:39 -0400
committerFreya Murphy <freya@freyacat.org>2025-06-24 11:51:39 -0400
commitd639c293ad1ba71008aeb5c54c40f59a076018dc (patch)
treee832a3f0ee5044c8b35e5642f07a62137bbffc2c /system/sshd.nix
parentupdate ssh config (diff)
downloaddotfiles-nix-d639c293ad1ba71008aeb5c54c40f59a076018dc.tar.gz
dotfiles-nix-d639c293ad1ba71008aeb5c54c40f59a076018dc.tar.bz2
dotfiles-nix-d639c293ad1ba71008aeb5c54c40f59a076018dc.zip
redo lib, make global vars for key lists
Diffstat (limited to '')
-rw-r--r--system/sshd.nix6
1 files changed, 2 insertions, 4 deletions
diff --git a/system/sshd.nix b/system/sshd.nix
index 0e0f1a2..d9e11f3 100644
--- a/system/sshd.nix
+++ b/system/sshd.nix
@@ -1,4 +1,4 @@
-{config, ...}: {
+{config, self, ...}: {
# sshd
services.openssh = {
enable = true;
@@ -26,8 +26,6 @@
# add authorized keys
users.users.${config.user} = {
- openssh.authorizedKeys.keyFiles = [
- ../files/keys/ssh.pub
- ];
+ openssh.authorizedKeys.keyFiles = self.lib.sshKeys;
};
}