preconfiguredModules.nixos: exclude fileSystems
This commit is contained in:
parent
6bc49bb402
commit
d32c2275e7
@ -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";}
|
||||||
|
@ -55,6 +55,10 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
swapDevices = [
|
||||||
|
{device = "/swap/swapfile";}
|
||||||
|
];
|
||||||
|
|
||||||
services.fstrim.enable = true;
|
services.fstrim.enable = true;
|
||||||
|
|
||||||
# Hardware etc
|
# Hardware etc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user