fix eval
This commit is contained in:
parent
8a3ece60e4
commit
5d3d19bf7c
1 changed files with 1 additions and 2 deletions
|
@ -1,7 +1,6 @@
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
hostDir = lib.head (builtins.match "nix-community-(.*)" config.networking.hostName);
|
defaultSopsPath = ../. + "/${config.networking.hostName}/secrets.yaml";
|
||||||
defaultSopsPath = ../. + "/${hostDir}/secrets.yaml";
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;
|
sops.defaultSopsFile = lib.mkIf (builtins.pathExists defaultSopsPath) defaultSopsPath;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue