modules: refactor common

move common into directory
This commit is contained in:
zowoq 2023-07-02 08:16:12 +10:00
parent f8a2457154
commit 1441015937
7 changed files with 1 additions and 1 deletions
modules/nixos/common

View 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;
}