preconfiguredModules.nixos: exclude fileSystems

This commit is contained in:
L-Nafaryus 2025-04-08 00:23:49 +05:00
parent 6bc49bb402
commit d32c2275e7
Signed by: L-Nafaryus
GPG Key ID: 553C97999B363D38
2 changed files with 30 additions and 26 deletions

View File

@ -28,36 +28,36 @@
};
# Filesystem
fileSystems = {
"/" = {
device = "/dev/disk/by-label/nixos";
fsType = "btrfs";
options = ["subvol=root" "compress=zstd"];
};
# fileSystems = {
# "/" = {
# device = "/dev/disk/by-label/nixos";
# fsType = "btrfs";
# options = ["subvol=root" "compress=zstd"];
# };
"/boot" = {
device = "/dev/disk/by-label/boot";
fsType = "vfat";
};
# "/boot" = {
# device = "/dev/disk/by-label/boot";
# fsType = "vfat";
# };
"/nix" = {
device = "/dev/disk/by-label/nixos";
fsType = "btrfs";
options = ["subvol=nix" "compress=zstd" "noatime"];
};
# "/nix" = {
# device = "/dev/disk/by-label/nixos";
# fsType = "btrfs";
# options = ["subvol=nix" "compress=zstd" "noatime"];
# };
"/home" = {
device = "/dev/disk/by-label/nixos";
fsType = "btrfs";
options = ["subvol=home" "compress=zstd"];
};
# "/home" = {
# device = "/dev/disk/by-label/nixos";
# fsType = "btrfs";
# options = ["subvol=home" "compress=zstd"];
# };
"/swap" = {
device = "/dev/disk/by-label/nixos";
fsType = "btrfs";
options = ["subvol=swap" "noatime"];
};
};
# "/swap" = {
# device = "/dev/disk/by-label/nixos";
# fsType = "btrfs";
# options = ["subvol=swap" "noatime"];
# };
# };
swapDevices = [
{device = "/swap/swapfile";}

View File

@ -55,6 +55,10 @@
};
};
swapDevices = [
{device = "/swap/swapfile";}
];
services.fstrim.enable = true;
# Hardware etc