rot8000
Signed-off-by: Harald Hoyer <harald@hoyer.xyz>
This commit is contained in:
parent
5fdd2ff06b
commit
878dc5f386
5 changed files with 105 additions and 3 deletions
|
@ -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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue