Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
arichtman committed Aug 25, 2024
1 parent a438fd1 commit 1d29598
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
15 changes: 14 additions & 1 deletion modules/nixos/lab-node/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,18 @@ in
'';
avahi = {
enable = true;
domainName = "internal";
# domainName = "internal";
publish = {
enable = true;
domain = true;
# TODO: testing all enabled
workstation = true;
userServices = true;
hinfo = true;
addresses = true;
};
nssmdns6 = true;
nssmdns4 = true;
ipv6 = true;
};
# Configure keymap in X11
Expand All @@ -111,6 +118,12 @@ in
# Enable networking
# TODO: Consider removal of networkmanager
networking.networkmanager.enable = true;
networking.nftables.enable = true;
# Only allow ingress from ranges I control
networking.firewall.extraInputRules = ''
ip saddr { 192.168.1.0/24 } udp dport 5353 accept
ip6 saddr { 2403:580a:e4b1::/48 } udp dport 5353 accept
'';
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
Expand Down
18 changes: 18 additions & 0 deletions systems/x86_64-linux/mum/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,22 @@ _: {
lab-node.enable = true;
virtual-node.enable = true;
system.stateVersion = "23.11";
config = {
services.avahi = {
enable = true;
# domainName = "internal";
publish = {
enable = true;
domain = true;
# TODO: testing all enabled
workstation = true;
userServices = true;
hinfo = true;
addresses = true;
};
nssmdns6 = true;
nssmdns4 = true;
ipv6 = true;
};
};
}

0 comments on commit 1d29598

Please sign in to comment.