mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-30 22:57:55 +00:00
users/foo-dogsquared/setups/development: add Jujutsu configuration
This commit is contained in:
parent
83277cb09f
commit
9eaf577057
@ -8,6 +8,7 @@
|
||||
./programs/doom-emacs.nix
|
||||
./programs/email.nix
|
||||
./programs/git.nix
|
||||
./programs/jujutsu.nix
|
||||
./programs/keys.nix
|
||||
./programs/nixvim
|
||||
./programs/research.nix
|
||||
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -19,6 +19,7 @@ in
|
||||
users.foo-dogsquared.programs = {
|
||||
shell.enable = lib.mkDefault true;
|
||||
git.enable = lib.mkDefault true;
|
||||
jujutsu.enable = lib.mkDefault true;
|
||||
keys.gpg.enable = true;
|
||||
keys.ssh.enable = true;
|
||||
terminal-multiplexer.enable = lib.mkDefault true;
|
||||
|
Loading…
Reference in New Issue
Block a user