the configuration for all my nixos machines (hacky! bad! ugly!)
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

added jujutsu config

+52 -1
+1 -1
modules/home/profiles/default.nix
··· 1 1 {...}: { 2 - imports = [ ./desktop ./ssh.nix ]; 2 + imports = [ ./desktop ./ssh.nix ./jj.nix ]; 3 3 }
+4
modules/home/profiles/desktop/default.nix
··· 6 6 enable = mkEnableOption "Profile for desktop machines"; 7 7 }; 8 8 config = lib.mkIf cfg.enable { 9 + profiles = { 10 + ssh.enable = lib.mkDefault true; 11 + jj.enable = lib.mkDefault true; 12 + }; 9 13 home.packages = with pkgs; [ 10 14 terminus_font 11 15 keepassxc
+47
modules/home/profiles/jj.nix
··· 1 + {config, lib, pkgs, inputs, ...}: 2 + let cfg = config.profiles.jj; 3 + in { 4 + options.profiles.jj.enable = lib.mkEnableOption "jujutsu configuration"; 5 + config = lib.mkIf cfg.enable { 6 + programs.jujutsu = { 7 + enable = true; 8 + ediff = false; 9 + settings = { 10 + user = { 11 + email = "jjbarr@ptnote.dev"; 12 + name = "Joshua Barrett"; 13 + }; 14 + ui = { 15 + default-command = "log"; 16 + conflict-marker-style = "git"; 17 + }; 18 + templates = { 19 + draft_commit_description = '' 20 + concat( 21 + builtin_draft_commit_description, 22 + "\nJJ: ignore-rest\n---\n", 23 + diff.git(), 24 + ) 25 + ''; 26 + }; 27 + revsets = { 28 + bookmark-advance-to = "closest_pushable(@)"; 29 + }; 30 + revset-aliases = { 31 + "closest_pushable(to)" = '' 32 + heads(::to & mutable() & ~description(exact:"") & (~empty() | merges())) 33 + ''; 34 + }; 35 + signing = { 36 + backend = "ssh"; 37 + behavior = "drop"; 38 + key = "~/.ssh/id_ed25519.pub"; 39 + }; 40 + git = { 41 + sign-on-push = true; 42 + private-commits = "description('wip:*') | description('private:*')"; 43 + }; 44 + }; 45 + }; 46 + }; 47 + }