refactor(networking): trim down excess boilerplate
This commit is contained in:
parent
fd3d84d7f8
commit
4ed747a1fa
1 changed files with 13 additions and 18 deletions
|
@ -1,13 +1,9 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
with lib;
|
||||
with lib.hlissner;
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
options = { };
|
||||
config = mkMerge [
|
||||
{
|
||||
networking.useDHCP = false;
|
||||
|
||||
services.avahi = {
|
||||
services = {
|
||||
avahi = {
|
||||
enable = true;
|
||||
nssmdns = true;
|
||||
publish = {
|
||||
|
@ -18,6 +14,5 @@ with lib.hlissner;
|
|||
ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||
};
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue