Add printing module
This commit is contained in:
parent
e119c402ed
commit
5db79a309f
3 changed files with 23 additions and 1 deletions
|
@ -15,7 +15,10 @@
|
|||
ssh.enable = true;
|
||||
zellij.enable = true;
|
||||
};
|
||||
services.desktop.gnome.enable = true;
|
||||
services = {
|
||||
desktop.gnome.enable = true;
|
||||
printing.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
boot = {
|
||||
|
|
|
@ -2,5 +2,6 @@
|
|||
imports = [
|
||||
./desktop
|
||||
./openssh
|
||||
./printing
|
||||
];
|
||||
}
|
||||
|
|
18
nixos/modules/services/printing/default.nix
Normal file
18
nixos/modules/services/printing/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue