mirror of
https://github.com/RGBCube/ncc
synced 2025-07-30 11:37:44 +00:00
Remove options/domains.nix
This commit is contained in:
parent
0928319c38
commit
6c1bdaaec4
3 changed files with 5 additions and 8 deletions
|
@ -66,8 +66,6 @@ in systemConfiguration {
|
||||||
services.openssh.settings.AcceptEnv = mkForce "COLORTERM GIT_PROTOCOL";
|
services.openssh.settings.AcceptEnv = mkForce "COLORTERM GIT_PROTOCOL";
|
||||||
|
|
||||||
services.forgejo = enabled {
|
services.forgejo = enabled {
|
||||||
inherit fqdn;
|
|
||||||
|
|
||||||
lfs = enabled;
|
lfs = enabled;
|
||||||
|
|
||||||
mailerPasswordFile = config.secrets.forgejoMailPassword.path;
|
mailerPasswordFile = config.secrets.forgejoMailPassword.path;
|
||||||
|
|
|
@ -65,7 +65,9 @@
|
||||||
})
|
})
|
||||||
|
|
||||||
(let
|
(let
|
||||||
gitDomain = self.cube.services.forgejo.fqdn;
|
gitUrl = self.cube.services.forgejo.settings.server.ROOT_URL;
|
||||||
|
gitDomain = head (strings.match "https://(.*)/" gitUrl);
|
||||||
|
|
||||||
mailDomain = head self.disk.mailserver.domains;
|
mailDomain = head self.disk.mailserver.domains;
|
||||||
in homeConfiguration {
|
in homeConfiguration {
|
||||||
programs.nushell.configFile.text = mkAfter ''
|
programs.nushell.configFile.text = mkAfter ''
|
||||||
|
@ -77,7 +79,7 @@ in homeConfiguration {
|
||||||
"RGBCube/" + $user_and_repo
|
"RGBCube/" + $user_and_repo
|
||||||
}
|
}
|
||||||
|
|
||||||
git remote add origin ("https://${gitDomain}/" + $user_and_repo)
|
git remote add origin ("${gitUrl}" + $user_and_repo)
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
@ -126,7 +128,7 @@ in homeConfiguration {
|
||||||
|
|
||||||
core.sshCommand = "ssh -i ~/.ssh/id";
|
core.sshCommand = "ssh -i ~/.ssh/id";
|
||||||
url."ssh://git@github.com/".insteadOf = "https://github.com/";
|
url."ssh://git@github.com/".insteadOf = "https://github.com/";
|
||||||
url."ssh://forgejo@${gitDomain}:${head self.cube.openssh.ports}/".insteadOf = "https://${gitDomain}/";
|
url."ssh://forgejo@${gitDomain}:${toString (head self.cube.services.openssh.ports)}/".insteadOf = gitUrl;
|
||||||
} (mkIf isDesktop {
|
} (mkIf isDesktop {
|
||||||
commit.gpgSign = true;
|
commit.gpgSign = true;
|
||||||
tag.gpgSign = true;
|
tag.gpgSign = true;
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
{ lib, ... }: {
|
|
||||||
options.services.forgejo.fqdn = lib.mkValue null;
|
|
||||||
}
|
|
Loading…
Add table
Add a link
Reference in a new issue