modules: refactor common
move common into directory
This commit is contained in:
parent
f8a2457154
commit
1441015937
7 changed files with 1 additions and 1 deletions
modules/nixos/common
7
modules/nixos/common/sops-nix.nix
Normal file
7
modules/nixos/common/sops-nix.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{ config, inputs, lib, ... }:
|
||||
let
|
||||
defaultSopsPath = "${toString inputs.self}/hosts/${config.networking.hostName}/secrets.yaml";
|
||||
in
|
||||
{
|
||||
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue