Setup secrets with git-crypt

This commit is contained in:
2024-07-12 23:06:19 -07:00
parent 25568a562a
commit 9b8a6c9771
3 changed files with 7 additions and 3 deletions

1
.gitattributes vendored Normal file
View File

@@ -0,0 +1 @@
secrets.json filter=git-crypt diff=git-crypt

View File

@@ -5,17 +5,20 @@
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
}; };
outputs = { nixpkgs, ... }@inputs: { outputs = { nixpkgs, ... }@inputs:
let
secrets = builtins.fromJSON (builtins.readFile ./secrets.json);
in {
nixosConfigurations = { nixosConfigurations = {
marauder = nixpkgs.lib.nixosSystem { marauder = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./marauder ]; modules = [ ./marauder ];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs secrets; };
}; };
monolith = nixpkgs.lib.nixosSystem { monolith = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
modules = [ ./monolith ]; modules = [ ./monolith ];
specialArgs = { inherit inputs; }; specialArgs = { inherit inputs secrets; };
}; };
}; };
}; };

BIN
secrets.json Normal file

Binary file not shown.