mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
More progress, not working though
This commit is contained in:
parent
a7dfb93f42
commit
710a5c5c16
3 changed files with 19 additions and 10 deletions
|
|
@ -112,6 +112,7 @@
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
disko.nixosModules.disko
|
disko.nixosModules.disko
|
||||||
|
microvm.nixosModules.host
|
||||||
|
|
||||||
home-manager.nixosModules.home-manager {
|
home-manager.nixosModules.home-manager {
|
||||||
home-manager = {
|
home-manager = {
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,11 @@
|
||||||
mountPoint = "/nix/.ro-store";
|
mountPoint = "/nix/.ro-store";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
interfaces = [{
|
||||||
|
type = "tap";
|
||||||
|
id = "vm-nginx-proxy";
|
||||||
|
mac = "02:00:00:00:00:01";
|
||||||
|
}];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
{ inputs, config, hostname, microvm, pkgs, sops-nix, username, ... }: {
|
{ inputs, config, hostname, microvm, pkgs, sops-nix, username, ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
microvm.nixosModules.host
|
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./audiobookshelf.nix
|
./audiobookshelf.nix
|
||||||
|
#microvm.nixosModules.host
|
||||||
|
#../microvms/nginx-proxy
|
||||||
];
|
];
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
|
|
@ -41,9 +42,9 @@
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
microvm.autostart = [
|
#microvm.autostart = [
|
||||||
#"nginx-proxy"
|
#"nginx-proxy"
|
||||||
];
|
#];
|
||||||
|
|
||||||
networking = {
|
networking = {
|
||||||
# Open ports in the firewall.
|
# Open ports in the firewall.
|
||||||
|
|
@ -55,24 +56,25 @@
|
||||||
hostId = "c5826b45"; # head -c4 /dev/urandom | od -A none -t x4
|
hostId = "c5826b45"; # head -c4 /dev/urandom | od -A none -t x4
|
||||||
|
|
||||||
networkmanager.enable = true;
|
networkmanager.enable = true;
|
||||||
enableIPv6 = true;
|
|
||||||
useDHCP = true;
|
|
||||||
vlans = {
|
vlans = {
|
||||||
vlan23 = { id = 23; interface = "eno1-23"; };
|
vlan23 = { id = 23; interface = "eno1"; };
|
||||||
};
|
};
|
||||||
bridges = {
|
bridges = {
|
||||||
br1-23 = { interfaces = [ "vlan23" ]; };
|
br1-23 = { interfaces = [ "vlan23" ]; };
|
||||||
};
|
};
|
||||||
|
useDHCP = false;
|
||||||
interfaces = {
|
interfaces = {
|
||||||
eno1.ipv4.addresses = [{
|
eno1.ipv4.addresses = [{
|
||||||
address = "192.168.20.190";
|
address = "192.168.20.190";
|
||||||
prefixLength = 24;
|
prefixLength = 24;
|
||||||
}];
|
}];
|
||||||
br1-23.ipv4.addresses = [{
|
#br1-23.ipv4.addresses = [{
|
||||||
address = "192.168.23.21";
|
#address = "192.168.23.21";
|
||||||
prefixLength = 24;
|
#prefixLength = 24;
|
||||||
}];
|
#}];
|
||||||
};
|
};
|
||||||
|
defaultGateway = "192.168.20.1";
|
||||||
|
nameservers = [ "192.168.20.1" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
# Hardware Transcoding for Jellyfin
|
# Hardware Transcoding for Jellyfin
|
||||||
|
|
@ -106,6 +108,7 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
};
|
};
|
||||||
|
lldpd.enable = true;
|
||||||
nginx = {
|
nginx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
virtualHosts."jellyfin" = {
|
virtualHosts."jellyfin" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue