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
|
|
@ -27,6 +27,10 @@
|
|||
enable = mkEnableOption "bluetooth";
|
||||
};
|
||||
|
||||
printing = {
|
||||
enable = mkEnableOption "printing";
|
||||
};
|
||||
|
||||
vpn = {
|
||||
enable = mkEnableOption "vpn";
|
||||
};
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
{ ... }: {
|
||||
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
|
|
|||
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue