mirror of
https://github.com/Swarsel/.dotfiles.git
synced 2025-12-06 17:17:22 +01:00
13 lines
401 B
Nix
13 lines
401 B
Nix
{ lib, config, pkgs, ... }:
|
|
{
|
|
options.swarselsystems.modules.nvd = lib.mkEnableOption "nvd config";
|
|
config = lib.mkIf config.swarselsystems.modules.nvd {
|
|
system.activationScripts.diff = {
|
|
supportsDryActivation = true;
|
|
text = ''
|
|
${pkgs.nvd}/bin/nvd --color=always --nix-bin-dir=${pkgs.nix}/bin diff \
|
|
/run/current-system "$systemConfig"
|
|
'';
|
|
};
|
|
};
|
|
}
|