restructure

This commit is contained in:
twoneis 2024-05-09 20:17:37 +02:00
parent d7bd686648
commit eecb15a4ec
50 changed files with 281 additions and 564 deletions

View file

@ -1,36 +1,31 @@
{ config, lib, modulesPath, ... }: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot.initrd.availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/disk/by-uuid/4ecc3b27-016f-4416-a819-bd0998fc993f";
fsType = "ext4";
{ config, lib, ... }: {
boot = {
initrd = {
availableKernelModules = [ "xhci_pci" "nvme" "usb_storage" "sd_mod" ];
kernelModules = [ ];
};
kernelModules = [ "kvm-intel" ];
extraModulePackages = [ ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/0721-3632";
fsType = "vfat";
};
fileSystems."/sd" = {
device = "/dev/disk/by-uuid/b3faf000-8792-4fca-916a-5965c0cb8186";
fsType = "ext4";
fileSystems = {
"/" = {
device = "/dev/disk/by-uuid/4ecc3b27-016f-4416-a819-bd0998fc993f";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-uuid/0721-3632";
fsType = "vfat";
};
"/ext" = {
device = "/dev/disk/by-uuid/b3faf000-8792-4fca-916a-5965c0cb8186";
fsType = "ext4";
};
};
swapDevices = [ { device = "/dev/disk/by-uuid/b35abec3-ff20-4b3b-b953-e36f2df719cb"; } ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction
# with explicit per-interface declarations with `networking.interfaces.<interface>.useDHCP`.
networking.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp0s20f3.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;