Add printing module

This commit is contained in:
Tibo De Peuter 2023-10-19 20:58:15 +02:00
parent e119c402ed
commit 5db79a309f
3 changed files with 23 additions and 1 deletions

View file

@ -15,7 +15,10 @@
ssh.enable = true;
zellij.enable = true;
};
services.desktop.gnome.enable = true;
services = {
desktop.gnome.enable = true;
printing.enable = true;
};
};
boot = {

View file

@ -2,5 +2,6 @@
imports = [
./desktop
./openssh
./printing
];
}

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.services.printing;
in {
options.sisyphus.services.printing.enable = lib.mkEnableOption "Printing";
config = lib.mkIf cfg.enable {
services = {
printing.enable = true;
avahi = {
enable = true;
nssmdns = true;
openFirewall = true;
};
};
};
}