86 lines
1.9 KiB
Nix
86 lines
1.9 KiB
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
imports = [ <nixpkgs/nixos/modules/installer/scan/not-detected.nix> ];
|
|
|
|
boot = {
|
|
initrd = {
|
|
availableKernelModules =
|
|
[ "uhci_hcd" "ehci_pci" "ata_piix" "ahci" "floppy" "sd_mod" "sr_mod" ];
|
|
kernelModules = [ "dm-snapshot" ];
|
|
};
|
|
|
|
kernelModules = [ "kvm-intel" ];
|
|
extraModulePackages = [ ];
|
|
kernelPackages = pkgs.linuxPackages_latest;
|
|
|
|
loader.grub = {
|
|
enable = true;
|
|
version = 2;
|
|
device = "/dev/sda";
|
|
};
|
|
};
|
|
|
|
boot.initrd.availableKernelModules =
|
|
[ "uhci_hcd" "ehci_pci" "ata_piix" "ahci" "floppy" "sd_mod" "sr_mod" ];
|
|
boot.initrd.kernelModules = [ "dm-snapshot" ];
|
|
boot.kernelModules = [ "kvm-intel" ];
|
|
boot.extraModulePackages = [ ];
|
|
|
|
fileSystems = {
|
|
"/boot" = {
|
|
device = "/dev/disk/by-label/france-boot";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
"/" = {
|
|
device = "/dev/disk/by-label/france-root";
|
|
fsType = "ext4";
|
|
};
|
|
|
|
"/var/lib/lxd/storage-pools/pool0" = {
|
|
device = "/dev/disk/by-label/pool0";
|
|
fsType = "btrfs";
|
|
label = "pool0";
|
|
};
|
|
|
|
"/var/lib/lxd/storage-pools/pool1" = {
|
|
device = "/dev/france-user/fudo-user";
|
|
fsType = "btrfs";
|
|
label = "pool1";
|
|
};
|
|
};
|
|
|
|
swapDevices = [{ device = "/dev/disk/by-label/france-swap"; }];
|
|
|
|
nix.maxJobs = lib.mkDefault 24;
|
|
|
|
hardware.bluetooth.enable = false;
|
|
|
|
network = {
|
|
macvlans = {
|
|
intif0 = {
|
|
interface = "enp4s0f1";
|
|
mode = "bridge";
|
|
};
|
|
|
|
extif0 = {
|
|
interface = "enp4s0f0";
|
|
mode = "bridge";
|
|
};
|
|
};
|
|
|
|
interfaces = {
|
|
intif0 = {
|
|
# output of: echo france-intif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
|
macAddress = "02:44:d1:eb:c3:6b";
|
|
};
|
|
|
|
extif0 = {
|
|
# output of: echo france-extif0|md5sum|sed 's/^\(..\)\(..\)\(..\)\(..\)\(..\).*$/02:\1:\2:\3:\4:\5/'
|
|
macAddress = "02:5e:ff:e4:83:e4";
|
|
};
|
|
};
|
|
};
|
|
}
|