Actually fix printing!!!

This commit is contained in:
Nathan McCarty 2022-11-12 16:20:40 -05:00
parent 4569d907e9
commit d1cee4e19e
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 14 additions and 2 deletions

View File

@ -31,12 +31,24 @@ in with lib; {
enable = true; enable = true;
drivers = with pkgs; [ canon-cups-ufr2 ]; drivers = with pkgs; [ canon-cups-ufr2 ];
}; };
environment.systemPackages = with pkgs; [ canon-cups-ufr2 ];
# Enable avahi for printer discovery # Enable avahi for printer discovery
services.avahi = { services.avahi = {
enable = true; enable = true;
nssmdns = true; nssmdns = false;
interfaces = [ "enp6s0" ];
hostName = "levitation";
domainName = "local";
openFirewall = true;
}; };
system.nssModules = with pkgs.lib;
optional (!config.services.avahi.nssmdns) pkgs.nssmdns;
system.nssDatabases.hosts = with pkgs.lib;
optionals (!config.services.avahi.nssmdns) (mkMerge [
(mkOrder 900
[ "mdns4_minimal [NOTFOUND=return]" ]) # must be before resolve
(mkOrder 1501 [ "mdns4" ]) # 1501 to ensure it's after dns
]);
}) })
]; ];
} }