From 4730b215fdc4095800fedfdf690c12fec994bb6b Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Wed, 2 Oct 2024 22:07:10 -0500 Subject: more reorganizing and modularizing --- modules/root/cups.nix | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 modules/root/cups.nix (limited to 'modules/root/cups.nix') diff --git a/modules/root/cups.nix b/modules/root/cups.nix new file mode 100644 index 0000000..39f8434 --- /dev/null +++ b/modules/root/cups.nix @@ -0,0 +1,9 @@ +{ lib, config, ... }: { + options = { + cups.enable = lib.mkEnableOption "enables printing"; + }; + + config = lib.mkIf config.cups.enable { + services.printing.enable = true; + }; +} -- cgit v1.2.3