From c5750c2819f00b05a5e682dc72a77004c35fddb3 Mon Sep 17 00:00:00 2001 From: Aaron Honeycutt <aaronhoneycutt@protonmail.com> Date: Fri, 5 Jan 2024 23:38:32 +0000 Subject: [PATCH] Add printer/scanner options, add nvd package and options and update NixOS version --- systems/vm.nix | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/systems/vm.nix b/systems/vm.nix index b63b265..5bb8c8e 100644 --- a/systems/vm.nix +++ b/systems/vm.nix @@ -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; - }