Setup secrets with git-crypt
This commit is contained in:
parent
25568a562a
commit
9b8a6c9771
3 changed files with 7 additions and 3 deletions
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
secrets.json filter=git-crypt diff=git-crypt
|
||||
|
|
@ -5,17 +5,20 @@
|
|||
nixpkgs.url = "github:nixos/nixpkgs/nixos-24.05";
|
||||
};
|
||||
|
||||
outputs = { nixpkgs, ... }@inputs: {
|
||||
outputs = { nixpkgs, ... }@inputs:
|
||||
let
|
||||
secrets = builtins.fromJSON (builtins.readFile ./secrets.json);
|
||||
in {
|
||||
nixosConfigurations = {
|
||||
marauder = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./marauder ];
|
||||
specialArgs = { inherit inputs; };
|
||||
specialArgs = { inherit inputs secrets; };
|
||||
};
|
||||
monolith = nixpkgs.lib.nixosSystem {
|
||||
system = "x86_64-linux";
|
||||
modules = [ ./monolith ];
|
||||
specialArgs = { inherit inputs; };
|
||||
specialArgs = { inherit inputs secrets; };
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
BIN
secrets.json
Normal file
BIN
secrets.json
Normal file
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue