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;
|
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;
|
||||||
|
|
|
@ -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 = {
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
})
|
})
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue