nixos-virtualbox-2025-01-06-22-20-04
This commit is contained in:
65
configs/filesystem.nix
Normal file
65
configs/filesystem.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{
|
||||
fileSystems = {
|
||||
"/" = {
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=root"
|
||||
"discard=async"
|
||||
"compress=zstd"
|
||||
"nodiratime"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
|
||||
"/home" = {
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=home"
|
||||
"discard=async"
|
||||
"compress=zstd"
|
||||
"nodiratime"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
|
||||
"/nix" = {
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=nix"
|
||||
"discard=async"
|
||||
"compress=zstd"
|
||||
"nodiratime"
|
||||
"noatime"
|
||||
];
|
||||
};
|
||||
|
||||
"/persist" = {
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=persist"
|
||||
"discard=async"
|
||||
"compress=zstd"
|
||||
"nodiratime"
|
||||
"noatime"
|
||||
];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
"/var/log" = {
|
||||
fsType = "btrfs";
|
||||
options = [
|
||||
"subvol=log"
|
||||
"discard=async"
|
||||
"compress=zstd"
|
||||
"nodiratime"
|
||||
"noatime"
|
||||
];
|
||||
neededForBoot = true;
|
||||
};
|
||||
|
||||
"/boot" = {
|
||||
fsType = "vfat";
|
||||
options = ["fmask=0022" "dmask=0022"];
|
||||
};
|
||||
};
|
||||
};
|
Reference in New Issue
Block a user