This commit is contained in:
Jörg Thalheim 2022-08-13 11:15:33 +02:00
parent 8a3ece60e4
commit 5d3d19bf7c

View file

@ -1,7 +1,6 @@
{ config, lib, pkgs, ... }:
let
hostDir = lib.head (builtins.match "nix-community-(.*)" config.networking.hostName);
defaultSopsPath = ../. + "/${hostDir}/secrets.yaml";
defaultSopsPath = ../. + "/${config.networking.hostName}/secrets.yaml";
in
{
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;