init
This commit is contained in:
commit
b6cdc78668
210 changed files with 9929 additions and 0 deletions
13
s0mePC-nix/networking/dhcp.nix
Normal file
13
s0mePC-nix/networking/dhcp.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
useDHCP = lib.mkDefault true;
|
||||
dhcpcd = {
|
||||
enable = true;
|
||||
persistent = false;
|
||||
wait = "any";
|
||||
};
|
||||
};
|
||||
}
|
||||
20
s0mePC-nix/networking/firewall.nix
Normal file
20
s0mePC-nix/networking/firewall.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
firewall = {
|
||||
allowPing = true;
|
||||
enable = true;
|
||||
checkReversePath = false;
|
||||
allowedUDPPorts = [
|
||||
9993
|
||||
2080
|
||||
];
|
||||
|
||||
allowedTCPPorts = [
|
||||
9993
|
||||
2080
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
7
s0mePC-nix/networking/hostId.nix
Normal file
7
s0mePC-nix/networking/hostId.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
hostId = "5c79d468";
|
||||
};
|
||||
}
|
||||
7
s0mePC-nix/networking/hostname.nix
Normal file
7
s0mePC-nix/networking/hostname.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
hostName = "s0mePC-nix";
|
||||
};
|
||||
}
|
||||
9
s0mePC-nix/networking/hosts.nix
Normal file
9
s0mePC-nix/networking/hosts.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking ={
|
||||
hosts = {
|
||||
# Nope
|
||||
};
|
||||
};
|
||||
}
|
||||
18
s0mePC-nix/networking/nameservers.nix
Normal file
18
s0mePC-nix/networking/nameservers.nix
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
nameservers = [
|
||||
"1.1.1.1"
|
||||
"1.0.0.1"
|
||||
"8.8.8.8"
|
||||
"8.8.4.4"
|
||||
"2606:4700:4700::1111"
|
||||
"2606:4700:4700::1001"
|
||||
"2001:4860:4860::8888"
|
||||
"2001:4860:4860::8844"
|
||||
"2620:119:35::35"
|
||||
"2620:119:53::53"
|
||||
];
|
||||
};
|
||||
}
|
||||
11
s0mePC-nix/networking/networkmanager.nix
Normal file
11
s0mePC-nix/networking/networkmanager.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking ={
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "default";
|
||||
dhcp = "internal";
|
||||
};
|
||||
};
|
||||
}
|
||||
12
s0mePC-nix/networking/timeServers.nix
Normal file
12
s0mePC-nix/networking/timeServers.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
timeServers = [
|
||||
"0.nixos.pool.ntp.org"
|
||||
"1.nixos.pool.ntp.org"
|
||||
"2.nixos.pool.ntp.org"
|
||||
"3.nixos.pool.ntp.org"
|
||||
];
|
||||
};
|
||||
}
|
||||
9
s0mePC-nix/networking/wireguard.nix
Normal file
9
s0mePC-nix/networking/wireguard.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
...
|
||||
}: {
|
||||
networking = {
|
||||
wireguard = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue