1
0
Fork 0

Fix private build

This commit is contained in:
Malte Brandy 2021-01-07 01:56:20 +01:00
parent c8ef67fbe9
commit edf9ed4316
3 changed files with 3 additions and 2 deletions

View file

@ -5,6 +5,7 @@ let
set -ex
export PATH=${lib.makeBinPath path}:$PATH
export NIX_PATH="/etc/nix-path:nixos-config=/etc/nixos/configuration.nix"
export GIT_SSH_COMMAND="ssh -vv"
cd /var/cache/gc-links
'';
in {

@ -1 +1 @@
Subproject commit dad66828a5c47029e33e8e8e156640608c66cf2f
Subproject commit 3b12c89ea2045730c024d3e382ac610a7166b620

View file

@ -11,7 +11,7 @@ in {
inherit withSecrets;
privatePath = name:
let path = "/etc/nixos/private/${name}";
in if withSecrets then assert builtins.pathExists path; path else path;
in if withSecrets then assert builtins.pathExists (./private + "/${name}"); path else path;
privateValue = default: name:
if withSecrets then import (./private + "/${name}.nix") else default;
privateFile = name: