Don't double configure printing

This commit is contained in:
Bun 2025-03-30 11:04:01 -04:00
parent 889bbb57d5
commit 0da3e4a95f
2 changed files with 12 additions and 19 deletions

View file

@ -1,19 +1,14 @@
{ config, lib, pkgs, ... }:
{ config, pkgs, ... }:
{
config = lib.mkIf config.system.desktop.enable {
services = {
printing = {
enable = true;
drivers = with pkgs; [ hplip ];
webInterface = false;
};
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
services = {
printing = {
enable = config.system.desktop.enable;
drivers = with pkgs; [ hplip ];
};
avahi = {
enable = config.services.printing.enable;
nssmdns4 = true;
openFirewall = true;
};
environment.systemPackages = with pkgs; [ system-config-printer ];
};
}