diff --git a/hosts/marr/configuration.nix b/hosts/marr/configuration.nix index 0d4aadd..faedbd0 100644 --- a/hosts/marr/configuration.nix +++ b/hosts/marr/configuration.nix @@ -45,6 +45,8 @@ sway.enable = true; }; + services.printing.enable = true; + #: Virtualisation {{{ virtualisation.docker = { enable = true; diff --git a/modules/default.nix b/modules/default.nix index 46bb5a6..69a0764 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -14,5 +14,6 @@ ./home-manager.nix ./system/mime.nix ./env.nix + ./printing.nix ]; } diff --git a/modules/printing.nix b/modules/printing.nix new file mode 100644 index 0000000..2351c49 --- /dev/null +++ b/modules/printing.nix @@ -0,0 +1,17 @@ +{ + lib, + config, + pkgs, + ... +}: +lib.mkIf config.services.printing.enable { + services.avahi = { + enable = true; + nssmdns = true; + openFirewall = true; + }; + + services.printing = { + drivers = with pkgs; [ hplip ]; + }; +}