users/foo-dogsquared/setups/development: add Jujutsu configuration

This commit is contained in:
Gabriel Arazas 2024-08-23 20:27:28 +08:00
parent 83277cb09f
commit 9eaf577057
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 27 additions and 0 deletions

View File

@ -8,6 +8,7 @@
./programs/doom-emacs.nix ./programs/doom-emacs.nix
./programs/email.nix ./programs/email.nix
./programs/git.nix ./programs/git.nix
./programs/jujutsu.nix
./programs/keys.nix ./programs/keys.nix
./programs/nixvim ./programs/nixvim
./programs/research.nix ./programs/research.nix

View File

@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:
let
userCfg = config.users.foo-dogsquared;
cfg = userCfg.programs.jujutsu;
in
{
options.users.foo-dogsquared.programs.jujutsu.enable =
lib.mkEnableOption "foo-dogsquared's Jujutsu configuration";
config = lib.mkIf cfg.enable {
programs.jujutsu = {
enable = true;
settings = {
user.name = config.accounts.email.accounts.personal.realName;
user.email = config.accounts.email.accounts.personal.address;
"merge-tools.diffoscope" = {
merge-args = [ "$left" "$right" ];
program = lib.getExe' pkgs.diffoscope "diffoscope";
};
};
};
};
}

View File

@ -19,6 +19,7 @@ in
users.foo-dogsquared.programs = { users.foo-dogsquared.programs = {
shell.enable = lib.mkDefault true; shell.enable = lib.mkDefault true;
git.enable = lib.mkDefault true; git.enable = lib.mkDefault true;
jujutsu.enable = lib.mkDefault true;
keys.gpg.enable = true; keys.gpg.enable = true;
keys.ssh.enable = true; keys.ssh.enable = true;
terminal-multiplexer.enable = lib.mkDefault true; terminal-multiplexer.enable = lib.mkDefault true;