mirror of
https://gitlab.com/ahoneybun/nix-configs.git
synced 2025-05-12 11:14:02 -06:00
Add usage of nvd for upgrade diffs and scanner support
This commit is contained in:
parent
25c6ad0f08
commit
4a8e6c9240
1 changed files with 19 additions and 1 deletions
|
@ -106,6 +106,7 @@
|
||||||
lshw
|
lshw
|
||||||
roboto-slab
|
roboto-slab
|
||||||
nix-index
|
nix-index
|
||||||
|
nvd
|
||||||
unzip
|
unzip
|
||||||
wget
|
wget
|
||||||
xz
|
xz
|
||||||
|
@ -137,10 +138,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.05";
|
||||||
system.autoUpgrade.enable = true;
|
system.autoUpgrade.enable = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue