forked from Fediversity/Fediversity
Use secrets module to clean up configurations
This commit is contained in:
parent
f753422295
commit
9407af8ac8
|
@ -19,7 +19,8 @@
|
|||
nixos.module = {
|
||||
imports = [
|
||||
./vm02116
|
||||
inputs.agenix.nixosModules.default
|
||||
self.nixosModules.ageSecrets
|
||||
{ x_fediversity.hostPublicKey = self.keys.systems.vm02116; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -36,7 +37,8 @@
|
|||
nixos.module = {
|
||||
imports = [
|
||||
./vm02179
|
||||
inputs.agenix.nixosModules.default
|
||||
self.nixosModules.ageSecrets
|
||||
{ x_fediversity.hostPublicKey = self.keys.systems.vm02179; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -53,7 +55,8 @@
|
|||
nixos.module = {
|
||||
imports = [
|
||||
./vm02186
|
||||
inputs.agenix.nixosModules.default
|
||||
self.nixosModules.ageSecrets
|
||||
{ x_fediversity.hostPublicKey = self.keys.systems.vm02186; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
@ -76,7 +79,11 @@
|
|||
};
|
||||
nixpkgs = inputs.nixpkgs;
|
||||
nixos.module = {
|
||||
imports = [ ./vm02187 ];
|
||||
imports = [
|
||||
./vm02187
|
||||
self.nixosModules.ageSecrets
|
||||
{ x_fediversity.hostPublicKey = self.keys.systems.vm02187; }
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -37,12 +37,10 @@ in
|
|||
};
|
||||
|
||||
age.secrets.forgejo-database-password = {
|
||||
file = ../../secrets/forgejo-database-password.age;
|
||||
owner = "forgejo";
|
||||
group = "forgejo";
|
||||
mode = "440";
|
||||
};
|
||||
age.secrets.forgejo-email-password.file = ../../secrets/forgejo-email-password.age;
|
||||
|
||||
users.groups.keys.members = [ "forgejo" ];
|
||||
|
||||
|
|
|
@ -34,8 +34,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
age.secrets.forgejo-runner-token.file = ../../secrets/forgejo-runner-token.age;
|
||||
|
||||
## The Nix configuration of the system influences the Nix configuration
|
||||
## in the workflow, and our workflows are often flake-based.
|
||||
nix.extraOptions = ''
|
||||
|
|
|
@ -38,8 +38,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
age.secrets.forgejo-runner-token.file = ../../secrets/forgejo-runner-token.age;
|
||||
|
||||
## For the Docker mode of the runner.
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue