diff --git a/nixos/common/default.nix b/nixos/common/default.nix index 5ca5374..fe40f90 100644 --- a/nixos/common/default.nix +++ b/nixos/common/default.nix @@ -4,6 +4,7 @@ ./audio.nix ./tailscale.nix ./bluetooth.nix + ./printing.nix ]; # use nix version 2.22 diff --git a/nixos/common/printing.nix b/nixos/common/printing.nix new file mode 100644 index 0000000..497e181 --- /dev/null +++ b/nixos/common/printing.nix @@ -0,0 +1,10 @@ +{ ... }: +{ + services.printing.enable = true; + + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; +} diff --git a/nixos/desktop/plasma.nix b/nixos/desktop/plasma.nix index 95f69e0..eff0c9d 100644 --- a/nixos/desktop/plasma.nix +++ b/nixos/desktop/plasma.nix @@ -1,6 +1,10 @@ -{ ... }: +{ pkgs, ... }: { services.displayManager.sddm.enable = true; services.displayManager.sddm.wayland.enable = true; services.desktopManager.plasma6.enable = true; + + environment.systemPackages = with pkgs; [ + system-config-printer + ]; }