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 = {
enable = true;
networks."10-venet" = {
matchConfig.Name = "venet0";
networkConfig = {
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"; }
];
networks."10-eth" = {
matchConfig.Name = "en* eth*"; # catches both naming schemes
networkConfig.DHCP = "yes";
};
};
+18 -4
View File
@@ -1,23 +1,37 @@
{ lib, modulesPath, ... }:
{
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
(modulesPath + "/profiles/qemu-guest.nix")
];
boot = {
initrd.availableKernelModules = [ ];
initrd.availableKernelModules = [
"virtio_pci"
"virtio_blk"
"virtio_net"
"ahci"
"xhci_pci"
];
initrd.kernelModules = [ ];
kernelModules = [ ];
extraModulePackages = [ ];
loader.grub.enable = false;
loader.systemd-boot.enable = true;
loader.efi.canTouchEfiVariables = true;
};
fileSystems."/" = {
fileSystems = {
"/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
};
};
swapDevices = [ ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+1
View File
@@ -51,6 +51,7 @@
};
};
# TODO: Get rid of this
virtualisation = lib.mkIf isServer {
vmVariant = {
virtualisation = {
+1
View File
@@ -10,6 +10,7 @@
quickemu
quickgui
nemu
OVMF
];
systemd.tmpfiles.rules = [
"L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware"