This commit is contained in:
2025-07-23 22:55:03 +03:00
parent 51cda7557c
commit 82d8a3c714
3 changed files with 24 additions and 44 deletions
+11 -11
View File
@@ -11,16 +11,16 @@
type = "EF02";
size = "1M";
};
ESP = {
size = "500M";
type = "EF00";
content = {
type = "filesystem";
format = "vfat";
mountpoint = "/boot";
mountOptions = [ "umask=0077" ];
};
};
# ESP = {
# size = "500M";
# type = "EF00";
# content = {
# type = "filesystem";
# format = "vfat";
# mountpoint = "/boot";
# mountOptions = [ "umask=0077" ];
# };
# };
root = {
size = "100%";
content = {
@@ -30,7 +30,7 @@
};
};
swap = {
size = "2G";
size = "256M";
content = {
type = "swap";
};
+11 -33
View File
@@ -10,46 +10,24 @@
(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"
# ];
# };
fileSystems = {
"/" = {
device = lib.mkForce "/dev/disk/by-partlabel/disk-main-root"; # "/dev/disk/by-partlabel/disk-main-root";
fsType = "ext4";
};
"/boot" = {
device = lib.mkForce "/dev/disk/by-partlabel/disk-main-ESP";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
# "/boot" = {
# device = lib.mkForce "/dev/disk/by-partlabel/disk-main-ESP";
# fsType = "vfat";
# options = [
# "fmask=0022"
# "dmask=0022"
# ];
# };
};
# swapDevices = [
# { device = "/dev/disk/by-partlabel/disk-main-swap"; }
# ];
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