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