mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -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;
|
||||
[
|
||||
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;
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue