tewi deployment

This commit is contained in:
arcnmx 2023-03-10 11:07:01 -08:00
parent 827d638f3a
commit 5d6c301a39
15 changed files with 84 additions and 1084 deletions

View file

@ -1,6 +1,5 @@
let
lock = builtins.fromJSON (builtins.readFile ./flake.lock);
lockTrusted = builtins.fromJSON (builtins.readFile ./trusted/flake.lock);
flakeCompat = fetchTarball {
url = "https://github.com/edolstra/flake-compat/archive/${lock.nodes.flake-compat.locked.rev}.tar.gz";
sha256 = lock.nodes.flake-compat.locked.narHash;
@ -9,8 +8,10 @@ let
src = ./.;
};
trusted = import flakeCompat {
src = ./trusted;
src = if builtins.pathExists ./trusted/trusted/flake.nix
then ./trusted/trusted
else ./trusted;
};
in nixfiles.defaultNix.inputs // (if builtins.getEnv "TRUSTED" != "" then {
inherit (trusted.defaultNix.inputs) trusted;
trusted = trusted.defaultNix;
} else {})