From e8ef6c438814787216d0b2f734ebd6e5cc5c9a82 Mon Sep 17 00:00:00 2001 From: liv Date: Sat, 24 Aug 2024 14:25:45 +0200 Subject: [PATCH] set up printing --- nixos/common/default.nix | 1 + nixos/common/printing.nix | 10 ++++++++++ nixos/desktop/plasma.nix | 6 +++++- 3 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 nixos/common/printing.nix 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 + ]; }