inherit
This commit is contained in:
1 parent
efa9b3a67e
commit
c61c523711
1 file changed
+2
-2
@@ -16,7 +16,7 @@
|
|||||||
postgresql-db,
|
postgresql-db,
|
||||||
}@inputs:
|
}@inputs:
|
||||||
let
|
let
|
||||||
credentialMap = builtins.listToAttrs (
|
credentials = builtins.listToAttrs (
|
||||||
map (filename: {
|
map (filename: {
|
||||||
name = builtins.replaceStrings [ ".env" ] [ "-env" ] filename;
|
name = builtins.replaceStrings [ ".env" ] [ "-env" ] filename;
|
||||||
value = nixpkgs.runCommand "sops-decrypt-${filename}" { } ''
|
value = nixpkgs.runCommand "sops-decrypt-${filename}" { } ''
|
||||||
@@ -30,7 +30,7 @@
|
|||||||
vm = nixpkgs.lib.nixosSystem {
|
vm = nixpkgs.lib.nixosSystem {
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
credentials = credentialMap;
|
inherit credentials;
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
./virtual.nix
|
./virtual.nix
|
||||||
|
|||||||
Reference in new issue
Block a user