feat: move system-config-printer to user space
This commit is contained in:
parent
d3bc83fbd6
commit
eb76eae1fc
5 changed files with 10 additions and 8 deletions
|
|
@ -13,6 +13,7 @@
|
|||
nvidia.enable = false;
|
||||
audio.enable = true;
|
||||
bluetooth.enable = true;
|
||||
printing.enable = true;
|
||||
vpn.enable = true;
|
||||
|
||||
devenv.enable = true;
|
||||
|
|
|
|||
|
|
@ -27,6 +27,10 @@
|
|||
enable = mkEnableOption "bluetooth";
|
||||
};
|
||||
|
||||
printing = {
|
||||
enable = mkEnableOption "printing";
|
||||
};
|
||||
|
||||
vpn = {
|
||||
enable = mkEnableOption "vpn";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue