Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
Harald Hoyer 2024-03-21 14:32:53 +01:00
parent 5fdd2ff06b
commit 878dc5f386
5 changed files with 105 additions and 3 deletions

View file

@ -56,6 +56,10 @@ in
interactive.diffFilter = "${pkgs.delta}/bin/delta --color-only";
merge.conflictStyle = "diff3";
diff.colorMoved = "default";
filter.rot8000 = {
clean = "${pkgs.metacfg.rot8000}/bin/rot8000";
smudge = "${pkgs.metacfg.rot8000}/bin/rot8000";
};
};
};
};

View file

@ -1,8 +1,18 @@
{ options, config, lib, pkgs, ... }:
{ options
, config
, lib
, pkgs
, ...
}:
with lib;
with lib.metacfg;
let cfg = config.metacfg.base;
let
cfg = config.metacfg.base;
gitconfig = pkgs.writeText "gitconfig" ''
[filter "rot8000"]
smudge = ${pkgs.metacfg.rot8000}/bin/rot8000
clean = ${pkgs.metacfg.rot8000}/bin/rot8000
'';
in
{
options.metacfg.base = with types; {
@ -38,6 +48,7 @@ in
delta
efibootmgr
git
git-crypt
git-delete-merged-branches
home-manager
htop
@ -137,6 +148,10 @@ in
];
flake = "git+https://git.hoyer.xyz/harald/nixcfg";
};
systemd.services.nixos-upgrade = {
path = [ pkgs.metacfg.rot8000 ];
environment.GIT_CONFIG_GLOBAL = toString gitconfig;
};
virtualisation.libvirtd.enable = true;