parent
b2bea02dd1
commit
b9ed94d3ee
|
@ -34,6 +34,9 @@
|
||||||
# Cleanup tmp on startup
|
# Cleanup tmp on startup
|
||||||
boot.cleanTmpDir = true;
|
boot.cleanTmpDir = true;
|
||||||
|
|
||||||
|
# Set hostname
|
||||||
|
networking.hostName = "zion";
|
||||||
|
|
||||||
# Create coolneng user
|
# Create coolneng user
|
||||||
users.users.coolneng = {
|
users.users.coolneng = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
|
@ -53,6 +56,7 @@
|
||||||
services.timesyncd.enable = true;
|
services.timesyncd.enable = true;
|
||||||
|
|
||||||
# Enable ZFS support
|
# Enable ZFS support
|
||||||
|
networking.hostId = "4e74ea68";
|
||||||
boot.supportedFilesystems = [ "zfs" ];
|
boot.supportedFilesystems = [ "zfs" ];
|
||||||
|
|
||||||
# Don't import encrypted datasets
|
# Don't import encrypted datasets
|
||||||
|
|
|
@ -1,25 +1,6 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
# Assign a static IP
|
|
||||||
networking = {
|
|
||||||
hostName = "zion";
|
|
||||||
hostId = "4e74ea68";
|
|
||||||
interfaces.eth0 = {
|
|
||||||
useDHCP = false;
|
|
||||||
ipv4.addresses = [{
|
|
||||||
address = "192.168.13.2";
|
|
||||||
prefixLength = 24;
|
|
||||||
}];
|
|
||||||
};
|
|
||||||
defaultGateway = {
|
|
||||||
address = "192.168.13.1";
|
|
||||||
interface = "eth0";
|
|
||||||
};
|
|
||||||
nameservers = [ "195.10.195.195" "165.22.224.164" ];
|
|
||||||
enableIPv6 = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable zeroconf
|
# Enable zeroconf
|
||||||
services.avahi = {
|
services.avahi = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -59,6 +40,12 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Disable IPv6
|
||||||
|
networking.enableIPv6 = false;
|
||||||
|
|
||||||
|
# Disable WiFi
|
||||||
|
networking.interfaces."eth0".useDHCP = true;
|
||||||
|
|
||||||
# Enable NAT for wireguard
|
# Enable NAT for wireguard
|
||||||
networking.nat = {
|
networking.nat = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -90,7 +77,7 @@
|
||||||
# DNS server with ad-block
|
# DNS server with ad-block
|
||||||
services.dnsmasq = {
|
services.dnsmasq = {
|
||||||
enable = true;
|
enable = true;
|
||||||
servers = config.networking.nameservers;
|
servers = [ "195.10.195.195" "165.22.224.164" ];
|
||||||
extraConfig = ''
|
extraConfig = ''
|
||||||
domain-needed
|
domain-needed
|
||||||
bogus-priv
|
bogus-priv
|
||||||
|
|
Loading…
Reference in New Issue