mirror of
https://github.com/blahai/nyx.git
synced 2025-02-23 23:35:08 +00:00
21 lines
505 B
Nix
21 lines
505 B
Nix
|
{
|
||
|
config,
|
||
|
inputs,
|
||
|
...
|
||
|
}: let
|
||
|
inherit (config.olympus.system) mainUser;
|
||
|
#homeDir = config.home-manager.users.${mainUser}.home.homeDirectory;
|
||
|
homeDir = config.hjem.users.${mainUser}.directory;
|
||
|
sshDir = homeDir + "/.ssh";
|
||
|
in {
|
||
|
imports = [inputs.agenix.nixosModules.default];
|
||
|
age = {
|
||
|
# check the main users ssh key and the system key to see if it is safe
|
||
|
# to decrypt the secrets
|
||
|
identityPaths = [
|
||
|
"/etc/ssh/ssh_host_ed25519_key"
|
||
|
"${sshDir}/id_ed25519"
|
||
|
];
|
||
|
};
|
||
|
}
|