Set printing back up :)

This commit is contained in:
Nathan McCarty 2022-11-05 23:54:11 -04:00
parent 32229b8ca1
commit eddaab7abd
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
3 changed files with 17 additions and 1 deletions

View File

@ -31,7 +31,10 @@
sshKey = config.sops.secrets."borg-ssh-key".path; sshKey = config.sops.secrets."borg-ssh-key".path;
}; };
}; };
hardware = { amdPassthrough = true; }; hardware = {
amdPassthrough = true;
printing = true;
};
config = { config = {
isDesktop = true; isDesktop = true;
setupGrub = true; setupGrub = true;

View File

@ -110,6 +110,8 @@ in {
logitech = mkDefaultOption "logitech" config.nathan.config.isDesktop; logitech = mkDefaultOption "logitech" config.nathan.config.isDesktop;
# AMD Single gpu passthrough # AMD Single gpu passthrough
amdPassthrough = mkEnableOption "logitech"; amdPassthrough = mkEnableOption "logitech";
# Printing setup
printing = mkEnableOption "printing";
}; };
# Linux specific configuration # Linux specific configuration
config = { config = {

View File

@ -25,7 +25,18 @@ in with lib; {
swtpm.enable = true; swtpm.enable = true;
}; };
}; };
})
(mkIf nw.printing {
services.printing = {
enable = true;
drivers = with pkgs; [ canon-cups-ufr2 ];
};
# Enable avahi for printer discovery
services.avahi = {
enable = true;
nssmdns = true;
};
}) })
]; ];
} }