mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
feat: add forgejo
This commit is contained in:
parent
ff8b5b4f7b
commit
d43fb3016d
14 changed files with 111 additions and 1 deletions
|
|
@ -17,6 +17,11 @@ in {
|
|||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
age.secrets.forgejo-ssh-key = {
|
||||
rekeyFile = ../../secrets/forgejo-ssh-key.age;
|
||||
mode = "0600";
|
||||
owner = username;
|
||||
};
|
||||
age.secrets.ssh-key-ao = lib.mkIf workEnabled {
|
||||
rekeyFile = ../../secrets/ssh-key-ao.age;
|
||||
mode = "0600";
|
||||
|
|
@ -40,6 +45,11 @@ in {
|
|||
hostname = "x.nickolaj.com";
|
||||
user = "nickolaj";
|
||||
};
|
||||
"forgejo.nickolaj.com" = {
|
||||
hostname = "forgejo.nickolaj.com";
|
||||
user = "git";
|
||||
identityFile = "${config.age.secrets.forgejo-ssh-key.path}";
|
||||
};
|
||||
}
|
||||
// lib.optionalAttrs workEnabled {
|
||||
# Work hostnames definded in ./networking.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue