Fix: SSH path was empty.

This commit is contained in:
Joey Hafner 2025-02-05 23:22:10 -08:00
parent 32ceed3318
commit 46ee5c8b5c
Signed by: Jafner
GPG Key ID: 6D9A24EF2F389E55
2 changed files with 5 additions and 2 deletions

View File

@ -243,6 +243,10 @@
mac = "00:02:C9:56:BF:9A";
ip = "192.168.1.23";
};
ssh = {
path = ".ssh";
privateKey = "admin@fighter";
};
dataDirs = {
appdata = "/appdata";
library = {

View File

@ -1,8 +1,7 @@
{ sys, pkgs, inputs, flake, ... }: {
imports = [ inputs.sops-nix.nixosModules.sops ];
sops = {
age.sshKeyPaths = [ "${sys.ssh.path}/${sys.ssh.privateKey}" ];
#age.keyFile = "/home/${sys.username}/.config/sops/age/keys.txt"; # This file is expected to be provided from outside the nix-store
age.sshKeyPaths = [ "/home/${sys.username}/${sys.ssh.path}/${sys.ssh.privateKey}" ];
age.generateKey = false;
};