dnsmasq
This commit is contained in:
parent
4ee6c7957c
commit
2e60504041
3 changed files with 54 additions and 23 deletions
19
common.nix
19
common.nix
|
|
@ -59,7 +59,26 @@
|
|||
environment.systemPackages = with pkgs; [
|
||||
sbctl
|
||||
];
|
||||
systemd.tmpfiles.rules = [ "d /srv/tftp 0755 root root -" ];
|
||||
services = {
|
||||
logind.settings.Login.HandleLidSwitch = "ignore";
|
||||
dnsmasq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enable-ra = true;
|
||||
no-resolv = true;
|
||||
cache-size = 1024;
|
||||
bogus-priv = true;
|
||||
enable-tftp = true;
|
||||
interface = "enp1s0";
|
||||
domain-needed = true;
|
||||
tftp-root = "/srv/tftp";
|
||||
dhcp-boot = "grubx64.efi";
|
||||
dhcp-range = [ "10.2.0.2,10.2.255.254,12h"
|
||||
"fc02::2,fc02::ffff:ffff:ffff:ffff,12h" ];
|
||||
server = [ "1.0.0.1" "2606:4700:4700::1001"
|
||||
"1.1.1.1" "2606:4700:4700::1111" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue