change age key
This commit is contained in:
1 parent
99e5d39c1a
commit
21d2c9d2a0
2 files changed
+15
-19
No files matched your search
@@ -17,29 +17,25 @@
|
||||
}@inputs:
|
||||
let
|
||||
system = "x86_64-linux";
|
||||
/*
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
credentials = builtins.listToAttrs (
|
||||
map (filename: {
|
||||
name = builtins.replaceStrings [ ".env" ] [ "-env" ] filename;
|
||||
value = pkgs.runCommand "sops-decrypt-${filename}" { } ''
|
||||
${pkgs.sops}/bin/sops -d ${./secrets}/${filename} > $out
|
||||
'';
|
||||
}) (builtins.attrNames (builtins.readDir ./secrets))
|
||||
);
|
||||
*/
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
};
|
||||
credentials = builtins.listToAttrs (
|
||||
map (filename: {
|
||||
name = builtins.replaceStrings [ ".env" ] [ "-env" ] filename;
|
||||
value = pkgs.runCommand "sops-decrypt-${filename}" { } ''
|
||||
${pkgs.sops}/bin/sops -d ${./secrets}/${filename} > $out
|
||||
'';
|
||||
}) (builtins.attrNames (builtins.readDir ./secrets))
|
||||
);
|
||||
in
|
||||
{
|
||||
nixosConfigurations = {
|
||||
vm = nixpkgs.lib.nixosSystem {
|
||||
system = system;
|
||||
/*
|
||||
specialArgs = {
|
||||
inherit credentials;
|
||||
};
|
||||
*/
|
||||
specialArgs = {
|
||||
inherit credentials;
|
||||
};
|
||||
modules = [
|
||||
./virtual.nix
|
||||
postgresql-db.nixosModules.postgresql-db
|
||||
|
||||
Reference in new issue
Block a user