nixos-config/config/host-config/wormhole0.nix

43 lines
652 B
Nix
Raw Normal View History

2022-03-16 09:49:54 -07:00
{ 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";
};
};
}