diff --git a/modules/linux/misc/default.nix b/modules/linux/misc/default.nix new file mode 100644 index 0000000..3780248 --- /dev/null +++ b/modules/linux/misc/default.nix @@ -0,0 +1,25 @@ +{ config, lib, ... }: +let + cfg = config.liminalOS.system.printing; +in +{ + options.liminalOS.system.printing = { + enable = lib.mkOption { + type = lib.types.bool; + default = config.liminalOS.enable; + description = '' + Whether to set up default options for printing and printer discover on UNIX. + ''; + }; + }; + + config = lib.mkIf cfg.enable { + services.printing.enable = true; + + services.avahi = { + enable = true; + nssmdns4 = true; + openFirewall = true; + }; + }; +}