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