ghost: split secrets for server and local
This commit is contained in:
parent
32b1771867
commit
b00b4e322f
2 changed files with 17 additions and 14 deletions
|
@ -3,7 +3,6 @@
|
|||
"${inputs.nixpkgs}/nixos/modules/virtualisation/digital-ocean-image.nix"
|
||||
inputs.agenix.nixosModules.default
|
||||
../system/nix.nix
|
||||
../system/secrets.nix
|
||||
];
|
||||
|
||||
# Use more aggressive compression then the default.
|
||||
|
@ -102,6 +101,22 @@
|
|||
size = (1024 * 2); # 2 GB
|
||||
}];
|
||||
|
||||
age = {
|
||||
identityPaths = [ "/root/.ssh/id_rsa" ];
|
||||
secrets.ghost-nextcloud = {
|
||||
file = ../secrets/ghost-nextcloud.age;
|
||||
mode = "400";
|
||||
owner = "nextcloud";
|
||||
group = "nextcloud";
|
||||
};
|
||||
secrets.ghost-writefreely = {
|
||||
file = ../secrets/ghost-writefreely.age;
|
||||
mode = "400";
|
||||
owner = "writefreely";
|
||||
group = "writefreely";
|
||||
};
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05"; # Never change this
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue