Foregejo containers fully operational
This commit is contained in:
parent
2de1a62d2f
commit
f1b3559434
4 changed files with 55 additions and 19 deletions
|
|
@ -6,7 +6,7 @@
|
|||
}: let
|
||||
inherit (lib) mkEnableOption mkIf;
|
||||
cfg = config.horseman.base.secrets;
|
||||
secretFile = path: ../../secrets/${path};
|
||||
secretFile = path: ../../secrets/${path}.age;
|
||||
username = config.horseman.username;
|
||||
in {
|
||||
options = {
|
||||
|
|
@ -19,38 +19,45 @@ in {
|
|||
environment.systemPackages = [pkgs.ragenix];
|
||||
|
||||
age.secrets = {
|
||||
wifi.file = secretFile "wifi.age";
|
||||
wifi.file = secretFile "wifi";
|
||||
|
||||
personalSSHpub = {
|
||||
file = secretFile "ssh/id_personal.pub.age";
|
||||
file = secretFile "ssh/id_personal.pub";
|
||||
owner = username;
|
||||
group = "users";
|
||||
path = "/home/horseman/.ssh/id_ed25519.pub";
|
||||
path = "/home/${username}/.ssh/id_ed25519.pub";
|
||||
};
|
||||
personalSSH = {
|
||||
file = secretFile "ssh/id_personal.age";
|
||||
file = secretFile "ssh/id_personal";
|
||||
owner = username;
|
||||
group = "users";
|
||||
path = "/home/horseman/.ssh/id_ed25519";
|
||||
path = "/home/${username}/.ssh/id_ed25519";
|
||||
};
|
||||
githubSSHpub = {
|
||||
file = secretFile "ssh/id_github.pub.age";
|
||||
file = secretFile "ssh/id_github.pub";
|
||||
owner = username;
|
||||
group = "users";
|
||||
path = "/home/horseman/.ssh/id_github.pub";
|
||||
path = "/home/${username}/.ssh/id_github.pub";
|
||||
};
|
||||
githubSSH = {
|
||||
file = secretFile "ssh/id_github.age";
|
||||
file = secretFile "ssh/id_github";
|
||||
owner = username;
|
||||
group = "users";
|
||||
path = "/home/horseman/.ssh/id_github";
|
||||
path = "/home/${username}/.ssh/id_github";
|
||||
};
|
||||
|
||||
sshConfig = {
|
||||
file = secretFile "ssh/config.age";
|
||||
file = secretFile "ssh/config";
|
||||
owner = username;
|
||||
group = "users";
|
||||
path = "/home/horseman/.ssh/config";
|
||||
path = "/home/${username}/.ssh/config";
|
||||
};
|
||||
|
||||
forgejo-secret = {
|
||||
file = secretFile "containers/forgejo-secret";
|
||||
path = "/run/forgejo-secrets/secret";
|
||||
symlink = false;
|
||||
mode = "444";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue