This commit is contained in:
2025-07-23 15:39:18 +03:00
parent 14fc4ba5b3
commit a40d057cb9
3 changed files with 54 additions and 56 deletions
+26 -31
View File
@@ -9,41 +9,34 @@
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
];
boot = {
initrd = {
availableKernelModules = [
"ahci"
"xhci_pci"
"usbhid"
"usb_storage"
"sd_mod"
"sdhci_pci"
];
};
kernel = {
sysctl = {
"fs.inotify.max_user_watches" = "204800";
};
};
kernelModules = [
"kvm-intel"
"coretemp"
];
};
# boot = {
# initrd = {
# availableKernelModules = [
# "ahci"
# "xhci_pci"
# "usbhid"
# "usb_storage"
# "sd_mod"
# "sdhci_pci"
# ];
# };
# kernel = {
# sysctl = {
# "fs.inotify.max_user_watches" = "204800";
# };
# };
# kernelModules = [
# "kvm-intel"
# "coretemp"
# ];
# };
fileSystems = {
"/" = {
device = "/dev/disk/by-partlabel/disk-main-root";
device = "/dev/vda1"; # "/dev/disk/by-partlabel/disk-main-root";
fsType = "ext4";
};
"/boot" = {
device = "/dev/disk/by-partlabel/disk-main-ESP";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
};
# fileSystems."/" =
@@ -62,7 +55,9 @@
# fsType = "ext4";
# };
swapDevices = [ ];
# swapDevices = [
# { device = "/dev/disk/by-partlabel/disk-main-swap"; }
# ];
# 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