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

@ -13,6 +13,7 @@
nvidia.enable = false;
audio.enable = true;
bluetooth.enable = true;
printing.enable = true;
vpn.enable = true;
devenv.enable = true;

View file

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

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
];
}

View file

@ -1,4 +1,4 @@
{ pkgs, ... }: {
{ pkgs, lib, nixosConfig, ... }: {
imports = [
./alacritty.nix
@ -19,6 +19,8 @@
gnome.simple-scan
telegram-desktop
signal-desktop
] ++ lib.optionals nixosConfig.bchmnn.printing.enable [
system-config-printer
];
}