modules/nixos/common: refactor
This commit is contained in:
parent
01c2beb7b4
commit
9746ffa853
3 changed files with 11 additions and 2 deletions
modules/nixos/common
|
@ -8,5 +8,9 @@ let
|
|||
defaultSopsPath = "${toString inputs.self}/hosts/${config.networking.hostName}/secrets.yaml";
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
inputs.sops-nix.nixosModules.sops
|
||||
];
|
||||
|
||||
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue