this repo has no description
1
fork

Configure Feed

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

The bat is back

Ben C c55bbc49 6c5b70f4

+31 -8
+31 -8
homeModules/utils.nix
··· 1 - {...}: { 1 + { ... }: 2 + { 2 3 config, 3 4 lib, 4 5 pkgs, 5 6 ... 6 - }: { 7 - options.cow.utils.enable = 8 - (lib.mkEnableOption "Handy utilities to have") 9 - // { 7 + }: 8 + { 9 + options.cow.utils = { 10 + enable = (lib.mkEnableOption "Handy utilities to have") // { 11 + default = true; 12 + }; 13 + batAliases = (lib.mkEnableOption "Aliases for bat commands in the shell") // { 10 14 default = true; 11 15 }; 16 + }; 12 17 13 18 config = lib.mkIf config.cow.utils.enable { 14 - home.packages = with pkgs; 19 + home.packages = 20 + with pkgs; 15 21 [ 16 22 binutils 17 23 usbutils ··· 41 47 ] 42 48 ++ lib.optional config.cow.gdi.enable wev; 43 49 50 + home.shellAliases = lib.mkIf config.cow.utils.batAliases { 51 + cat = "bat"; 52 + man = "batman"; 53 + bg = "batgrep"; 54 + bdiff = "batdiff"; 55 + }; 56 + 57 + programs.bat = { 58 + enable = true; 59 + extraPackages = with pkgs.bat-extras; [ 60 + batdiff 61 + batman 62 + batgrep 63 + batwatch 64 + ]; 65 + }; 66 + 44 67 programs.hyfetch = { 45 68 enable = true; 46 69 settings = { 47 70 backend = "fastfetch"; 48 71 color_align = { 49 - custom_colors = []; 72 + custom_colors = [ ]; 50 73 fore_back = null; 51 74 mode = "horizontal"; 52 75 }; ··· 56 79 mode = "rgb"; 57 80 preset = "gay-men"; 58 81 pride_month_disable = false; 59 - pride_month_shown = []; 82 + pride_month_shown = [ ]; 60 83 }; 61 84 }; 62 85 };