Skip to content

Commit

Permalink
hosts/laptop: remove bad recommendations for mounts
Browse files Browse the repository at this point in the history
Preventing copy-on-write was a very bad idea. Originally my logic was that because I do not strictly care about the store surviving, since I can fully regenerate it through my configuration; it does not matter. Furthermore, COW is useless in the store since files are only ever created or deleted, it actually performs no tangible actions since there is never a "write" that happens on an existing path for a "copy" to occur. Unfortunately, I did not realize that disabling COW also disables compression, that means that my system has absolutely no compression on the store despite using `zstd:15`.. Next time I suppose.

Preventing compression on persist is up for debate though. I've removed it now because I don't have any strong evidence for or against it, especially since I haven't experienced the IO of compression from this installation given my mishap mentioned above. It may be worth doing but it may be too IO intensive, I'd need to perform real-world testing, which I haven't done. As a result, this recommendation may be back but it might not, it depends on what I discover in the future.
  • Loading branch information
Frontear committed Nov 26, 2024
1 parent 1766c0a commit 4eb1fe0
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hosts/laptop/hardware/mounts.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
options = [ "noatime" "size=256M" ];
};

# chattr +C /nix/store (prevent copy-on-write)
# chattr +m /nix/persist (prevent compression)
"/nix" = {
device = "/dev/disk/by-partlabel/nix";
fsType = "btrfs";
Expand Down

0 comments on commit 4eb1fe0

Please sign in to comment.