Changed Proxy stuff

This commit is contained in:
2026-04-24 23:29:27 +02:00
parent 4717e21ba2
commit b944652549
4 changed files with 25 additions and 16 deletions
+3 -10
View File
@@ -13,16 +13,9 @@
systemd.network = { systemd.network = {
enable = true; enable = true;
networks."10-venet" = { networks."10-eth" = {
matchConfig.Name = "venet0"; matchConfig.Name = "en* eth*"; # catches both naming schemes
networkConfig = { networkConfig.DHCP = "yes";
Address = "178.254.8.35/24";
DNS = "178.254.16.141 178.254.16.151";
DHCP = "no";
};
routes = [
{ routeConfig.Destination = "0.0.0.0/0"; }
];
}; };
}; };
+20 -6
View File
@@ -1,21 +1,35 @@
{ lib, modulesPath, ... }: { lib, modulesPath, ... }:
{ {
imports = [ imports = [
(modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
]; ];
boot = { boot = {
initrd.availableKernelModules = [ ]; initrd.availableKernelModules = [
"virtio_pci"
"virtio_blk"
"virtio_net"
"ahci"
"xhci_pci"
];
initrd.kernelModules = [ ]; initrd.kernelModules = [ ];
kernelModules = [ ]; kernelModules = [ ];
extraModulePackages = [ ]; extraModulePackages = [ ];
loader.grub.enable = false; loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
}; };
fileSystems."/" = { fileSystems = {
device = "/dev/disk/by-label/NIXROOT"; "/" = {
fsType = "ext4"; device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
}; };
swapDevices = [ ]; swapDevices = [ ];
+1
View File
@@ -51,6 +51,7 @@
}; };
}; };
# TODO: Get rid of this
virtualisation = lib.mkIf isServer { virtualisation = lib.mkIf isServer {
vmVariant = { vmVariant = {
virtualisation = { virtualisation = {
+1
View File
@@ -10,6 +10,7 @@
quickemu quickemu
quickgui quickgui
nemu nemu
OVMF
]; ];
systemd.tmpfiles.rules = [ systemd.tmpfiles.rules = [
"L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware" "L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware"