Set printing back up :)
This commit is contained in:
parent
32229b8ca1
commit
eddaab7abd
|
@ -31,7 +31,10 @@
|
|||
sshKey = config.sops.secrets."borg-ssh-key".path;
|
||||
};
|
||||
};
|
||||
hardware = { amdPassthrough = true; };
|
||||
hardware = {
|
||||
amdPassthrough = true;
|
||||
printing = true;
|
||||
};
|
||||
config = {
|
||||
isDesktop = true;
|
||||
setupGrub = true;
|
||||
|
|
|
@ -110,6 +110,8 @@ in {
|
|||
logitech = mkDefaultOption "logitech" config.nathan.config.isDesktop;
|
||||
# AMD Single gpu passthrough
|
||||
amdPassthrough = mkEnableOption "logitech";
|
||||
# Printing setup
|
||||
printing = mkEnableOption "printing";
|
||||
};
|
||||
# Linux specific configuration
|
||||
config = {
|
||||
|
|
|
@ -25,7 +25,18 @@ in with lib; {
|
|||
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;
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue