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, ... }:
|
{ pkgs, ... }:
|
||||||
with lib;
|
|
||||||
with lib.hlissner;
|
|
||||||
{
|
|
||||||
options = { };
|
|
||||||
config = mkMerge [
|
|
||||||
{
|
{
|
||||||
networking.useDHCP = false;
|
networking.useDHCP = false;
|
||||||
|
|
||||||
services.avahi = {
|
services = {
|
||||||
|
avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
nssmdns = true;
|
nssmdns = true;
|
||||||
publish = {
|
publish = {
|
||||||
|
@ -18,6 +14,5 @@ with lib.hlissner;
|
||||||
ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
ssh = "${pkgs.avahi}/etc/avahi/services/ssh.service";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
];
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue