From dabb36ee5fc47e048d0a49babcac88c947c7dab7 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 29 Sep 2024 01:51:24 -0700 Subject: [PATCH] feat: add printing to core --- hosts/adrastea/configuration.nix | 3 --- hosts/callisto/configuration.nix | 3 --- hosts/demeter/configuration.nix | 3 --- modules/linux/core/default.nix | 8 ++++++++ 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/hosts/adrastea/configuration.nix b/hosts/adrastea/configuration.nix index a78e15d..f427c1c 100755 --- a/hosts/adrastea/configuration.nix +++ b/hosts/adrastea/configuration.nix @@ -134,9 +134,6 @@ xkb.variant = ""; }; - # Enable CUPS to print documents. - services.printing.enable = true; - # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; diff --git a/hosts/callisto/configuration.nix b/hosts/callisto/configuration.nix index 365c769..1587d5a 100755 --- a/hosts/callisto/configuration.nix +++ b/hosts/callisto/configuration.nix @@ -92,9 +92,6 @@ xkb.variant = ""; }; - # Enable CUPS to print documents. - services.printing.enable = true; - # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; diff --git a/hosts/demeter/configuration.nix b/hosts/demeter/configuration.nix index ee9af72..6adfffe 100755 --- a/hosts/demeter/configuration.nix +++ b/hosts/demeter/configuration.nix @@ -114,9 +114,6 @@ xkb.variant = ""; }; - # Enable CUPS to print documents. - services.printing.enable = true; - # Enable touchpad support (enabled default in most desktopManager). # services.xserver.libinput.enable = true; diff --git a/modules/linux/core/default.nix b/modules/linux/core/default.nix index af5634d..ed56bfe 100644 --- a/modules/linux/core/default.nix +++ b/modules/linux/core/default.nix @@ -41,4 +41,12 @@ max-free = ${toString (1024 * 1024 * 1024)} ''; }; + # Enable CUPS to print documents. + services.printing.enable = true; + + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; }