mirror of
https://github.com/blahai/nyx.git
synced 2025-06-09 16:53:03 -04:00
a lot of shit also baibai home manager, hello hjem
This commit is contained in:
parent
bc82345beb
commit
2c8f822b83
37 changed files with 1277 additions and 168 deletions
20
modules/base/secrets.nix
Normal file
20
modules/base/secrets.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue