43 lines
652 B
Nix
43 lines
652 B
Nix
|
{ config, lib, pkgs, ... }:
|
||
|
|
||
|
with lib;
|
||
|
let
|
||
|
primary-ip = "10.0.0.3";
|
||
|
|
||
|
in {
|
||
|
networking = {
|
||
|
hostName = "wormhole0";
|
||
|
|
||
|
firewall.enable = false;
|
||
|
|
||
|
defaultGateway = {
|
||
|
address = "10.0.0.1";
|
||
|
interface = "intif0";
|
||
|
};
|
||
|
|
||
|
nameservers = [ "10.0.0.1" ];
|
||
|
|
||
|
interfaces = {
|
||
|
intif0 = {
|
||
|
ipv4.addresses = [{
|
||
|
address = primary-ip;
|
||
|
prefixLength = 24;
|
||
|
}];
|
||
|
};
|
||
|
|
||
|
wlan0.useDHCP = true;
|
||
|
};
|
||
|
};
|
||
|
|
||
|
nix = {
|
||
|
# settings = {
|
||
|
# auto-optimise-store = true;
|
||
|
# };
|
||
|
gc = {
|
||
|
automatic = true;
|
||
|
dates = "weekly";
|
||
|
options = "--delete-older-than 30d";
|
||
|
};
|
||
|
};
|
||
|
}
|