Added printing config
This commit is contained in:
parent
f651667481
commit
56da54bc36
2 changed files with 24 additions and 7 deletions
23
modules/services/printing/default.nix
Normal file
23
modules/services/printing/default.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
options,
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.aa.apps.steam;
|
||||
in {
|
||||
options.aa.services.printing = with types; {
|
||||
enable = mkEnableOption "printing";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
# Setup printing over the network
|
||||
services.printing.enable = true;
|
||||
services.avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue