{ pkgs, ... }: { hardware.printers.ensurePrinters = [ { name = "HP_Deskjet_1510_aubergine"; description = "HP Deskjet 1510 @ aubergine"; deviceUri = "ipp://aubergine.local:631/printers/HP_Deskjet_1510_series"; model = "everywhere"; location = "Home"; ppdOptions = { PageSize = "A4"; ColorModel = "KGray"; OutputMode = "Best"; }; } ]; hardware.printers.ensureDefaultPrinter = "HP_Deskjet_1510_aubergine"; hardware.sane.netConf = '' aubergine.local ''; services.udev.extraRules = '' SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="TOSHIBA_MK6459GSXP_519DC07HT", \ ACTION=="add", ENV{SYSTEMD_WANTS}+="zfs-import@off3.service" SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="TOSHIBA_MK6459GSXP_519DC07HT", \ ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block zfs-import@off3.service" SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="Samsung_SSD_870_EVO_1TB_S75CNX0X354178D", \ ACTION=="add", ENV{SYSTEMD_WANTS}+="zfs-import@off4.service" SUBSYSTEM=="block", KERNEL=="sd*", ENV{ID_SERIAL}=="Samsung_SSD_870_EVO_1TB_S75CNX0X354178D", \ ACTION=="remove", RUN+="${pkgs.systemd}/bin/systemctl stop --no-block zfs-import@off4.service" ''; }