Update some of the ips I missed oopsies
This commit is contained in:
parent
48b55af695
commit
c1819b68a1
8 changed files with 10 additions and 45 deletions
|
@ -1,6 +1,6 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
fileSystems = {
|
fileSystems = with config.services.mycelium.ips; {
|
||||||
"/persist/storage" = {
|
"/persist/storage" = {
|
||||||
device = "/dev/disk/by-uuid/d0d6783f-ad51-4d85-b8a9-3374f6460ef6";
|
device = "/dev/disk/by-uuid/d0d6783f-ad51-4d85-b8a9-3374f6460ef6";
|
||||||
fsType = "btrfs";
|
fsType = "btrfs";
|
||||||
|
@ -22,30 +22,27 @@
|
||||||
|
|
||||||
# Network mounts
|
# Network mounts
|
||||||
"/home/${config.sysusers.main}/Network/Midas" = {
|
"/home/${config.sysusers.main}/Network/Midas" = {
|
||||||
device = "10.2.0.1:/storage";
|
device = "[${midas}]:/storage";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [
|
options = [
|
||||||
"noatime"
|
|
||||||
"noauto"
|
"noauto"
|
||||||
"soft"
|
"soft"
|
||||||
"x-systemd.automount"
|
"x-systemd.automount"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"/home/${config.sysusers.main}/Network/Kitty" = {
|
"/home/${config.sysusers.main}/Network/Kitty" = {
|
||||||
device = "10.2.0.2:/storage/bun";
|
device = "[${kitty}]:/storage/bun";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [
|
options = [
|
||||||
"noatime"
|
|
||||||
"noauto"
|
"noauto"
|
||||||
"soft"
|
"soft"
|
||||||
"x-systemd.automount"
|
"x-systemd.automount"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"/home/${config.sysusers.main}/Network/Prophet" = {
|
"/home/${config.sysusers.main}/Network/Prophet" = {
|
||||||
device = "mx.nixfox.ca:/storage";
|
device = "[${prophet}]:/storage";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [
|
options = [
|
||||||
"noatime"
|
|
||||||
"noauto"
|
"noauto"
|
||||||
"soft"
|
"soft"
|
||||||
"x-systemd.automount"
|
"x-systemd.automount"
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
fileSystems = {
|
fileSystems = with config.services.mycelium.ips; {
|
||||||
|
# Network mounts
|
||||||
"/home/${config.sysusers.main}/Network/Midas" = {
|
"/home/${config.sysusers.main}/Network/Midas" = {
|
||||||
device = "10.2.0.1:/storage";
|
device = "[${midas}]:/storage";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [
|
options = [
|
||||||
"noauto"
|
"noauto"
|
||||||
|
@ -11,7 +12,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"/home/${config.sysusers.main}/Network/Kitty" = {
|
"/home/${config.sysusers.main}/Network/Kitty" = {
|
||||||
device = "10.2.0.2:/storage/bun";
|
device = "[${kitty}]:/storage/bun";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [
|
options = [
|
||||||
"noauto"
|
"noauto"
|
||||||
|
@ -20,7 +21,7 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
"/home/${config.sysusers.main}/Network/Prophet" = {
|
"/home/${config.sysusers.main}/Network/Prophet" = {
|
||||||
device = "mx.nixfox.ca:/storage";
|
device = "[${prophet}]:/storage";
|
||||||
fsType = "nfs4";
|
fsType = "nfs4";
|
||||||
options = [
|
options = [
|
||||||
"noauto"
|
"noauto"
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
./disko
|
./disko
|
||||||
./filesystems
|
./filesystems
|
||||||
./hardware
|
./hardware
|
||||||
./network
|
|
||||||
./user
|
./user
|
||||||
../../modules/system
|
../../modules/system
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
networking = {
|
|
||||||
interfaces."eno1".ipv4.addresses = [{
|
|
||||||
address = "10.2.0.2";
|
|
||||||
prefixLength = 8;
|
|
||||||
}];
|
|
||||||
defaultGateway = {
|
|
||||||
address = "10.1.0.1";
|
|
||||||
interface = "eno1";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -10,7 +10,4 @@
|
||||||
interface = "enp0s31f6";
|
interface = "enp0s31f6";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable IP forwarding for the server configuration
|
|
||||||
boot.kernel.sysctl."net.ipv4.ip_forward" = 1;
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,7 +5,6 @@
|
||||||
./disko
|
./disko
|
||||||
./filesystems
|
./filesystems
|
||||||
./hardware
|
./hardware
|
||||||
./network
|
|
||||||
./user
|
./user
|
||||||
../../modules/system
|
../../modules/system
|
||||||
];
|
];
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
{ ... }:
|
|
||||||
{
|
|
||||||
networking = {
|
|
||||||
interfaces."enp42s0".ipv4.addresses = [{
|
|
||||||
address = "10.2.0.100";
|
|
||||||
prefixLength = 8;
|
|
||||||
}];
|
|
||||||
defaultGateway = {
|
|
||||||
address = "10.1.0.1";
|
|
||||||
interface = "enp42s0";
|
|
||||||
};
|
|
||||||
|
|
||||||
firewall.allowedUDPPorts = [ 27015 ];
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -7,7 +7,7 @@
|
||||||
port = 8060;
|
port = 8060;
|
||||||
rtmp-port = 1945;
|
rtmp-port = 1945;
|
||||||
};
|
};
|
||||||
networking.firewall.extraInputRules = ''
|
networking.firewall.extraInputRules = with config.services.mycelium.ips; ''
|
||||||
ip6 saddr ${tower} tcp dport 1935 accept
|
ip6 saddr ${tower} tcp dport 1935 accept
|
||||||
'';
|
'';
|
||||||
environment.persistence."/persist".directories = [ "/var/lib/owncast" ];
|
environment.persistence."/persist".directories = [ "/var/lib/owncast" ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue