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 # Filesystem
fileSystems = { # fileSystems = {
"/" = { # "/" = {
device = "/dev/disk/by-label/nixos"; # device = "/dev/disk/by-label/nixos";
fsType = "btrfs"; # fsType = "btrfs";
options = ["subvol=root" "compress=zstd"]; # options = ["subvol=root" "compress=zstd"];
}; # };
"/boot" = { # "/boot" = {
device = "/dev/disk/by-label/boot"; # device = "/dev/disk/by-label/boot";
fsType = "vfat"; # fsType = "vfat";
}; # };
"/nix" = { # "/nix" = {
device = "/dev/disk/by-label/nixos"; # device = "/dev/disk/by-label/nixos";
fsType = "btrfs"; # fsType = "btrfs";
options = ["subvol=nix" "compress=zstd" "noatime"]; # options = ["subvol=nix" "compress=zstd" "noatime"];
}; # };
"/home" = { # "/home" = {
device = "/dev/disk/by-label/nixos"; # device = "/dev/disk/by-label/nixos";
fsType = "btrfs"; # fsType = "btrfs";
options = ["subvol=home" "compress=zstd"]; # options = ["subvol=home" "compress=zstd"];
}; # };
"/swap" = { # "/swap" = {
device = "/dev/disk/by-label/nixos"; # device = "/dev/disk/by-label/nixos";
fsType = "btrfs"; # fsType = "btrfs";
options = ["subvol=swap" "noatime"]; # options = ["subvol=swap" "noatime"];
}; # };
}; # };
swapDevices = [ swapDevices = [
{device = "/swap/swapfile";} {device = "/swap/swapfile";}

View File

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