s0mePC-nix -> ada: rename
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
b877c80e25
commit
aae7900229
86 changed files with 696 additions and 262 deletions
10
ada/networking/dhcp.nix
Normal file
10
ada/networking/dhcp.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{lib, ...}: {
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
dhcpcd = {
|
||||
enable = true;
|
||||
persistent = false;
|
||||
wait = "any";
|
||||
};
|
||||
};
|
||||
}
|
||||
30
ada/networking/firewall.nix
Normal file
30
ada/networking/firewall.nix
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
firewall = {
|
||||
allowPing = true;
|
||||
enable = true;
|
||||
checkReversePath = false;
|
||||
|
||||
interfaces = {
|
||||
eno1 = rec {
|
||||
allowedTCPPortRanges = [
|
||||
{
|
||||
from = 1714;
|
||||
to = 1764;
|
||||
}
|
||||
];
|
||||
|
||||
allowedUDPPortRanges = allowedTCPPortRanges;
|
||||
};
|
||||
|
||||
salt-hand7s-pc = rec {
|
||||
allowedTCPPorts = [
|
||||
6567
|
||||
];
|
||||
|
||||
allowedUDPPorts = allowedTCPPorts;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
5
ada/networking/hostId.nix
Normal file
5
ada/networking/hostId.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
hostId = "5c79d468";
|
||||
};
|
||||
}
|
||||
5
ada/networking/hostname.nix
Normal file
5
ada/networking/hostname.nix
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
hostName = "s0mePC-nix";
|
||||
};
|
||||
}
|
||||
7
ada/networking/hosts.nix
Normal file
7
ada/networking/hosts.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
hosts = {
|
||||
# nope
|
||||
};
|
||||
};
|
||||
}
|
||||
29
ada/networking/nameservers.nix
Normal file
29
ada/networking/nameservers.nix
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
nameservers = [
|
||||
# cf dns
|
||||
"1.1.1.1"
|
||||
"1.0.0.1"
|
||||
"2606:4700:4700::1111"
|
||||
"2606:4700:4700::1001"
|
||||
|
||||
# google dns
|
||||
"8.8.8.8"
|
||||
"8.8.4.4"
|
||||
"2001:4860:4860::8888"
|
||||
"2001:4860:4860::8844"
|
||||
|
||||
# q9 dns
|
||||
"9.9.9.9"
|
||||
"149.112.112.112"
|
||||
"2620:fe::fe"
|
||||
"2620:fe::9"
|
||||
|
||||
# open dns
|
||||
"208.67.222.222"
|
||||
"208.67.220.220"
|
||||
"2620:119:35::35"
|
||||
"2620:119:53::53"
|
||||
];
|
||||
};
|
||||
}
|
||||
9
ada/networking/networkmanager.nix
Normal file
9
ada/networking/networkmanager.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = false;
|
||||
};
|
||||
|
||||
useNetworkd = true;
|
||||
};
|
||||
}
|
||||
10
ada/networking/timeServers.nix
Normal file
10
ada/networking/timeServers.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
timeServers = [
|
||||
"0.nixos.pool.ntp.org"
|
||||
"1.nixos.pool.ntp.org"
|
||||
"2.nixos.pool.ntp.org"
|
||||
"3.nixos.pool.ntp.org"
|
||||
];
|
||||
};
|
||||
}
|
||||
7
ada/networking/wireguard.nix
Normal file
7
ada/networking/wireguard.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
wireguard = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue