Add printer/scanner options, add nvd package and options and update NixOS version

This commit is contained in:
Aaron Honeycutt 2024-01-05 23:38:32 +00:00
parent d78f507e6c
commit c5750c2819

View file

@ -60,6 +60,7 @@
with pkgs; with pkgs;
[ [
nix-index nix-index
nvd
unzip unzip
wget wget
xz xz
@ -88,10 +89,27 @@
enable = true; enable = true;
nssmdns = true; nssmdns = true;
openFirewall = 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
system.stateVersion = "23.05"; system.stateVersion = "23.11";
system.autoUpgrade.enable = true; system.autoUpgrade.enable = true;
} }