Add usage of nvd for upgrade diffs and scanner support

This commit is contained in:
Aaron Honeycutt 2024-01-05 21:08:39 +00:00 committed by Aaron Honeycutt
parent 25c6ad0f08
commit 4a8e6c9240

View file

@ -106,6 +106,7 @@
lshw
roboto-slab
nix-index
nvd
unzip
wget
xz
@ -137,10 +138,27 @@
enable = true;
nssmdns = true;
openFirewall = true;
# Needed for detecting scanners
publish = {
enable = true;
addresses = true;
userServices = true;
};
};
# Scanner support
hardware.sane.enable = true;
hardware.sane.ExtraBackends = [ pkgs.sane-airscan ];
services.ipp-usb.enable = true;
system.activationScripts.diff = {
supportsDryActivation = true;
text = ''
${pkgs.nvd}/bin/nvd --nix-bin-dir=${pkgs.nix}/bin diff /run/current-system "$systemConfig"
'';
};
# System
system.stateVersion = "23.05";
system.autoUpgrade.enable = true;
}