From a448c9071bd0d64783803f92f101973d355d529d Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Sun, 16 Jun 2024 21:25:47 +0530 Subject: [PATCH] use /persist paths --- hosts/skipper/secureboot.nix | 2 +- hosts/skipper/services/ssh.nix | 4 ++-- hosts/skipper/wireguard.nix | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/hosts/skipper/secureboot.nix b/hosts/skipper/secureboot.nix index 0e06ca5..6f9a169 100644 --- a/hosts/skipper/secureboot.nix +++ b/hosts/skipper/secureboot.nix @@ -7,7 +7,7 @@ loader.systemd-boot.enable = lib.mkForce false; lanzaboote = { enable = true; - pkiBundle = "/etc/secureboot"; + pkiBundle = "/persist/system/etc/secureboot"; }; }; environment.systemPackages = with pkgs; [ diff --git a/hosts/skipper/services/ssh.nix b/hosts/skipper/services/ssh.nix index 59ff254..420095f 100644 --- a/hosts/skipper/services/ssh.nix +++ b/hosts/skipper/services/ssh.nix @@ -8,11 +8,11 @@ _: { }; hostKeys = [ { - path = "/etc/ssh/keys/ssh_host_ed25519_key"; + path = "/persist/system/etc/ssh/keys/ssh_host_ed25519_key"; type = "ed25519"; } { - path = "/etc/ssh/keys/ssh_host_rsa_key"; + path = "/persist/system/etc/ssh/keys/ssh_host_rsa_key"; type = "rsa"; bits = "4096"; } diff --git a/hosts/skipper/wireguard.nix b/hosts/skipper/wireguard.nix index 7f5800e..ccb8f58 100644 --- a/hosts/skipper/wireguard.nix +++ b/hosts/skipper/wireguard.nix @@ -19,7 +19,7 @@ in "fd7c:585c:c4ae::2/64" ]; listenPort = 51822; - privateKeyFile = "/etc/wireguard/private.key"; + privateKeyFile = "/persist/system/etc/wireguard/private.key"; generatePrivateKeyFile = true; peers = [ wireguard_server