Add basic mycelium, change some hardware and browser stuff
This commit is contained in:
parent
f49316e600
commit
200bf7e711
6 changed files with 64 additions and 63 deletions
|
@ -9,14 +9,5 @@
|
||||||
address = "10.1.0.1";
|
address = "10.1.0.1";
|
||||||
interface = "eno1";
|
interface = "eno1";
|
||||||
};
|
};
|
||||||
|
|
||||||
vlans.internal = {
|
|
||||||
id=100;
|
|
||||||
interface="eno1";
|
|
||||||
};
|
|
||||||
interfaces.internal.ipv4.addresses = [{
|
|
||||||
address = "11.0.0.2";
|
|
||||||
prefixLength = 8;
|
|
||||||
}];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,33 +9,6 @@
|
||||||
address = "10.1.0.1";
|
address = "10.1.0.1";
|
||||||
interface = "enp0s31f6";
|
interface = "enp0s31f6";
|
||||||
};
|
};
|
||||||
|
|
||||||
vlans.internal = {
|
|
||||||
id=100;
|
|
||||||
interface="enp0s31f6";
|
|
||||||
};
|
|
||||||
interfaces.internal.ipv4.addresses = [{
|
|
||||||
address = "11.0.0.1";
|
|
||||||
prefixLength = 8;
|
|
||||||
}];
|
|
||||||
|
|
||||||
nftables.tables.forwarding = {
|
|
||||||
family = "inet";
|
|
||||||
content = ''
|
|
||||||
chain incoming {
|
|
||||||
type nat hook prerouting priority dstnat; policy accept;
|
|
||||||
tcp dport 2211 dnat ip to 11.0.0.100:22 comment "Tower SSH"
|
|
||||||
tcp dport 2222 dnat ip to 11.0.0.2:22 comment "Kitty SSH"
|
|
||||||
|
|
||||||
udp dport { 27005, 27015 } dnat ip to 11.0.0.100 comment "PC Hosted Games"
|
|
||||||
}
|
|
||||||
|
|
||||||
chain forward {
|
|
||||||
type nat hook postrouting priority 100; policy accept;
|
|
||||||
masquerade
|
|
||||||
}
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable IP forwarding for the server configuration
|
# Enable IP forwarding for the server configuration
|
||||||
|
|
|
@ -10,15 +10,6 @@
|
||||||
interface = "enp42s0";
|
interface = "enp42s0";
|
||||||
};
|
};
|
||||||
|
|
||||||
vlans.internal = {
|
|
||||||
id=100;
|
|
||||||
interface="enp42s0";
|
|
||||||
};
|
|
||||||
interfaces.internal.ipv4.addresses = [{
|
|
||||||
address = "11.0.0.100";
|
|
||||||
prefixLength = 8;
|
|
||||||
}];
|
|
||||||
|
|
||||||
firewall.allowedUDPPorts = [ 27015 ];
|
firewall.allowedUDPPorts = [ 27015 ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,8 @@
|
||||||
package = pkgs.librewolf;
|
package = pkgs.librewolf;
|
||||||
profiles.default = {
|
profiles.default = {
|
||||||
isDefault = true;
|
isDefault = true;
|
||||||
containersForce = true;
|
|
||||||
|
|
||||||
|
containersForce = true;
|
||||||
containers = {
|
containers = {
|
||||||
home = {
|
home = {
|
||||||
color = "purple";
|
color = "purple";
|
||||||
|
@ -21,26 +21,56 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
extensions.packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
bookmarks = {
|
||||||
bitwarden
|
force = true;
|
||||||
darkreader
|
settings = [
|
||||||
return-youtube-dislikes
|
{
|
||||||
simple-tab-groups
|
name = "NixFox";
|
||||||
sponsorblock
|
url = "https://www.nixfox.ca";
|
||||||
ublock-origin
|
}
|
||||||
violentmonkey
|
{
|
||||||
];
|
name = "Luna";
|
||||||
|
url = "https://www.lunamoonlight.xyz";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Freecorn";
|
||||||
|
url = "https://freecorn1854.win";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Bloxelcom";
|
||||||
|
url = "https://www.bloxelcom.net";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "YouTube";
|
||||||
|
url = "https://www.kernel.org";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "NixOS Wiki";
|
||||||
|
url = "https://nixos.wiki";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
name = "Kernel";
|
||||||
|
url = "https://www.kernel.org";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
extensions = {
|
||||||
|
force = true;
|
||||||
|
packages = with pkgs.nur.repos.rycee.firefox-addons; [
|
||||||
|
bitwarden
|
||||||
|
darkreader
|
||||||
|
return-youtube-dislikes
|
||||||
|
simple-tab-groups
|
||||||
|
sponsorblock
|
||||||
|
ublock-origin
|
||||||
|
violentmonkey
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
search = {
|
search = {
|
||||||
force = true;
|
force = true;
|
||||||
default = "ecosia";
|
default = "ecosia";
|
||||||
order = [
|
|
||||||
"ecosia"
|
|
||||||
"nixpkgs"
|
|
||||||
"mynixos"
|
|
||||||
"youtube"
|
|
||||||
"spotify"
|
|
||||||
];
|
|
||||||
engines = {
|
engines = {
|
||||||
"ecosia" = {
|
"ecosia" = {
|
||||||
urls = [{
|
urls = [{
|
||||||
|
@ -166,7 +196,6 @@
|
||||||
"privacy.clearOnShutdown.cookies" = false;
|
"privacy.clearOnShutdown.cookies" = false;
|
||||||
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
|
"privacy.clearOnShutdown_v2.cookiesAndStorage" = false;
|
||||||
"privacy.fingerprintingProtection" = true;
|
"privacy.fingerprintingProtection" = true;
|
||||||
"privacy.firstparty.isolate" = true;
|
|
||||||
"privacy.globalprivacycontrol.enabled" = true;
|
"privacy.globalprivacycontrol.enabled" = true;
|
||||||
"privacy.globalprivacycontrol.functionality.enabled" = true;
|
"privacy.globalprivacycontrol.functionality.enabled" = true;
|
||||||
"privacy.resistFingerprinting" = true;
|
"privacy.resistFingerprinting" = true;
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./mycelium
|
||||||
./nameservers
|
./nameservers
|
||||||
./wireless
|
./wireless
|
||||||
];
|
];
|
||||||
|
|
16
modules/system/devices/networking/mycelium/default.nix
Normal file
16
modules/system/devices/networking/mycelium/default.nix
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
services.mycelium = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
addHostedPublicNodes = false;
|
||||||
|
peers = [
|
||||||
|
"quic://[2607:fea8:431d:cba5:16bf:db31:5797:4170]:9651"
|
||||||
|
"quic://[2607:fea8:431d:cba5:d104:b60a:c847:9797]:9651"
|
||||||
|
"quic://[2607:fea8:431d:cba5:1963:58fa:50f4:f841]:9651"
|
||||||
|
"quic://150.230.26.224:9651"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.persistence."/persist".directories = [ "/var/lib/private/mycelium" ];
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue