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

Add jujutsu config

This commit is contained in:
RGBCube 2025-01-18 21:39:55 +03:00
parent 8ae633a5e4
commit b0991454b7
2 changed files with 44 additions and 7 deletions

View file

@ -1,4 +1,4 @@
{ self, config, lib, pkgs, ... }: let
{ config, lib, pkgs, ... }: let
inherit (lib) head mkAfter enabled merge mkIf;
inherit (lib.strings) match;
in {
@ -74,13 +74,12 @@ in {
];
home-manager.sharedModules = [
(let
(homeArgs: let
homeConfig = homeArgs.config;
# TODO: gitUrl = self.cube.services.forgejo.settings.server.ROOT_URL;
gitUrl = "https://git.rgbcu.be/";
gitDomain = head <| match "https://(.*)/" gitUrl;
# TODO: mailDomain = head self.disk.mailserver.domains;
mailDomain = "rgbcu.be";
in {
programs.nushell.configFile.text = mkAfter ''
# Sets the remote origin to the specified user and repository on my git instance
@ -98,8 +97,8 @@ in {
programs.git = enabled {
package = pkgs.gitFull;
userName = "RGBCube";
userEmail = "git@${mailDomain}";
userName = homeConfig.programs.jujutsu.settings.user.name;
userEmail = homeConfig.programs.jujutsu.settings.user.email;
lfs = enabled;