Changed Proxy stuff
This commit is contained in:
@@ -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";
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
# TODO: Get rid of this
|
||||
virtualisation = lib.mkIf isServer {
|
||||
vmVariant = {
|
||||
virtualisation = {
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
quickemu
|
||||
quickgui
|
||||
nemu
|
||||
OVMF
|
||||
];
|
||||
systemd.tmpfiles.rules = [
|
||||
"L+ /var/lib/qemu/firmware - - - - ${pkgs.qemu}/share/qemu/firmware"
|
||||
|
||||
Reference in New Issue
Block a user