mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-13 03:33:00 -06:00
Add printer/scanner options, add nvd package and options and update NixOS version
This commit is contained in:
parent
d78f507e6c
commit
c5750c2819
1 changed files with 20 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue