feat: move system-config-printer to user space

This commit is contained in:
Jacob Bachmann 2024-01-08 18:14:53 +01:00
parent d3bc83fbd6
commit eb76eae1fc
Signed by: bchmnn
GPG key ID: 732A612DAD28067D
5 changed files with 10 additions and 8 deletions

View file

@ -27,6 +27,10 @@
enable = mkEnableOption "bluetooth";
};
printing = {
enable = mkEnableOption "printing";
};
vpn = {
enable = mkEnableOption "vpn";
};

View file

@ -1,5 +1,5 @@
{ ... }: {
services.openssh = {
enable = true;
openFirewall = true;

View file

@ -1,5 +1,4 @@
{ pkgs, config, ... }: {
# Enable CUPS to print documents.
{ pkgs, lib, config, ... }: lib.mkIf config.bchmnn.printing.enable {
services.printing = {
enable = true;
drivers = [
@ -24,8 +23,4 @@
];
ensureDefaultPrinter = "Brother-MFC-L3750CDW-series";
};
environment.systemPackages = with pkgs; with config.bchmnn; lib.optionals (gui.enable) [
system-config-printer
];
}