1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 10:07:44 +00:00

feat: don't hardcode urls

This commit is contained in:
RGBCube 2025-02-28 00:41:20 +03:00
parent 765cc3ca49
commit 082dabb1af
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M
2 changed files with 6 additions and 9 deletions

View file

@ -1,4 +1,4 @@
{ config, lib, pkgs, ... }: let { self, config, lib, pkgs, ... }: let
inherit (lib) head mkAfter enabled merge mkIf; inherit (lib) head mkAfter enabled merge mkIf;
inherit (lib.strings) match; inherit (lib.strings) match;
in { in {
@ -77,8 +77,7 @@ in {
(homeArgs: let (homeArgs: let
homeConfig = homeArgs.config; homeConfig = homeArgs.config;
# TODO: gitUrl = self.cube.services.forgejo.settings.server.ROOT_URL; gitUrl = self.best.services.forgejo.settings.server.ROOT_URL;
gitUrl = "https://git.rgbcu.be/";
gitDomain = head <| match "https://(.*)/" gitUrl; gitDomain = head <| match "https://(.*)/" gitUrl;
in { in {
programs.nushell.configFile.text = mkAfter /* nu */ '' programs.nushell.configFile.text = mkAfter /* nu */ ''
@ -137,8 +136,7 @@ in {
} <| mkIf config.isDesktop { } <| mkIf config.isDesktop {
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/";
# TODO: url."ssh://forgejo@${gitDomain}:${toString (head self.cube.services.openssh.ports)}/".insteadOf = gitUrl; url."ssh://forgejo@${gitDomain}:${toString self.cube.services.forgejo.settings.server.SSH_PORT}/".insteadOf = gitUrl;
url."ssh://forgejo@${gitDomain}:2222/".insteadOf = gitUrl;
commit.gpgSign = true; commit.gpgSign = true;
tag.gpgSign = true; tag.gpgSign = true;

View file

@ -1,5 +1,5 @@
{ config, lib, pkgs, ... }: let { self, config, lib, pkgs, ... }: let
inherit (lib) enabled getExe; inherit (lib) enabled getExe head;
in { in {
environment.systemPackages = [ environment.systemPackages = [
pkgs.difftastic pkgs.difftastic
@ -15,8 +15,7 @@ in {
programs.jujutsu = enabled { programs.jujutsu = enabled {
settings = let settings = let
# TODO: mailDomain = head self.disk.mailserver.domains; mailDomain = head self.disk.mailserver.domains;
mailDomain = "rgbcu.be";
in { in {
user.name = "RGBCube"; user.name = "RGBCube";
user.email = "git@${mailDomain}"; user.email = "git@${mailDomain}";