🚀 enable avahi based on printing service
This commit is contained in:
parent
5c5cfedc98
commit
cdee0d6bc9
1 changed files with 1 additions and 1 deletions
|
@ -11,11 +11,11 @@
|
||||||
];
|
];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
avahi = {
|
|
||||||
printing = {
|
printing = {
|
||||||
enable = true;
|
enable = true;
|
||||||
drivers = with pkgs; [ epson-escpr2 epson-escpr ];
|
drivers = with pkgs; [ epson-escpr2 epson-escpr ];
|
||||||
};
|
};
|
||||||
|
avahi = lib.mkIf config.services.printing.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns = true;
|
nssmdns = true;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue