From d639c293ad1ba71008aeb5c54c40f59a076018dc Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 24 Jun 2025 11:51:39 -0400 Subject: redo lib, make global vars for key lists --- system/default.nix | 7 ++----- system/sshd.nix | 6 ++---- 2 files changed, 4 insertions(+), 9 deletions(-) (limited to 'system') diff --git a/system/default.nix b/system/default.nix index 1a710d7..ae04066 100644 --- a/system/default.nix +++ b/system/default.nix @@ -1,7 +1,7 @@ { - inputs, config, pkgs, + self, ... }: { imports = [ @@ -136,8 +136,5 @@ }; # certs - security.pki.certificateFiles = [ - ../files/certs/freyanet.crt - ../files/certs/tinternet.crt - ]; + security.pki.certificateFiles = self.lib.certs; } 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; }; } -- cgit v1.2.3-freya