mirror of
https://github.com/RGBCube/ncc
synced 2025-07-29 19:17:45 +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.forgejo = enabled {
|
||||
inherit fqdn;
|
||||
|
||||
lfs = enabled;
|
||||
|
||||
mailerPasswordFile = config.secrets.forgejoMailPassword.path;
|
||||
|
|
|
@ -65,7 +65,9 @@
|
|||
})
|
||||
|
||||
(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;
|
||||
in homeConfiguration {
|
||||
programs.nushell.configFile.text = mkAfter ''
|
||||
|
@ -77,7 +79,7 @@ in homeConfiguration {
|
|||
"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";
|
||||
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 {
|
||||
commit.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