Live data from Hacker News

NixOS on Btrfs+tmpfs

cnx.srht.site

1–10 of 55 posts

Re: NixOS on Btrfs+tmpfs

#2
Neat:) I would never use btrfs myself[0], but very happy to see people exploring all variations of these ideas. The one thing that's starting to bug me though, as I read blog posts about installing nixos: why is the install process so imperative/non-declarative? Once the system is up, the whole thing fits in configuration.nix, but to get there we still have to use masses of shell commands. Is anyone working on bridging that last gap and supporting partitions, filesystems, and mounts (I think that's all that's left?) from nix itself?

[0] I lost 2 root filesystems to btrfs, probably because it couldn't handle space exhaustion. I'm paranoid now.

Re: NixOS on Btrfs+tmpfs

#3

Neat:) I would never use btrfs myself[0], but very happy to see people exploring all variations of these ideas. The one thing that's starting to bug me though, as I read blog posts about installing nixos: why is the install process so imperative/non-declarative? Once the system is up, the whole thing fits in configuration.nix, but to get there we still have to use masses of shell commands. Is anyone working on bridgi…

I have a fork of `justdoit.nix' https://github.com/cleverca22/nix-tests/blob/master/kexec/ju... which generates installer images with an auto-partitioning script and stub "configuration.nix" embedded in it with basically just enough of a system to get nixops or morph to deploy to it. it's kind of a pain to get that working the first few times since you have to wait for an image to bake and then test it in QEMU, and then make changes for nvme, etc, but it's brought up three systems now.

Re: NixOS on Btrfs+tmpfs

#4
post #3

Neat:) I would never use btrfs myself[0], but very happy to see people exploring all variations of these ideas. The one thing that's starting to bug me though, as I read blog posts about installing nixos: why is the install process so imperative/non-declarative? Once the system is up, the whole thing fits in configuration.nix, but to get there we still have to use masses of shell commands. Is anyone working on bridgi…

I have a fork of `justdoit.nix' https://github.com/cleverca22/nix-tests/blob/master/kexec/ju... which generates installer images with an auto-partitioning script and stub "configuration.nix" embedded in it with basically just enough of a system to get nixops or morph to deploy to it. it's kind of a pain to get that working the first few times since you have to wait for an image to bake and then test it in QEMU, and t…

Thanks! I'll have to give it a spin:)

Re: NixOS on Btrfs+tmpfs

#5
> Most subvolumes can be mounted with noatime, except for /home where I frequently need to sort files by modification time.

That doesn't sound right. Noatime turns off recording of the last access time, not modification.

Re: NixOS on Btrfs+tmpfs

#7

I would prefer to do this on zfs, for which there is a lovely installation guide on the openzfs docs site. https://openzfs.github.io/openzfs-docs/Getting%20Started/Nix...

I can vouch for how good it works. Using it on my personal laptop.

Re: NixOS on Btrfs+tmpfs

#8
post #5

> Most subvolumes can be mounted with noatime, except for /home where I frequently need to sort files by modification time. That doesn't sound right. Noatime turns off recording of the last access time, not modification.

IIRC, noatime is useful everywhere except /var/spool or /var/mail where certain daemons may depend on access time correctness.

Re: NixOS on Btrfs+tmpfs

#9

Neat:) I would never use btrfs myself[0], but very happy to see people exploring all variations of these ideas. The one thing that's starting to bug me though, as I read blog posts about installing nixos: why is the install process so imperative/non-declarative? Once the system is up, the whole thing fits in configuration.nix, but to get there we still have to use masses of shell commands. Is anyone working on bridgi…

I loose every two years (when i test it again) a volume to btrfs, last time 2 month ago, with that simple "trick":

-Fill your rootpartionion as root with "dd if=/dev/urandom of=./blabla bs=3m"

-rm blabla && sync (we don't want to be unfair to such a fragile system)

-Reboot and end up with unbootable /

It's a mess, for a filesystem i would declare it as alpha stage.

Re: NixOS on Btrfs+tmpfs

#10
post #8
post #5

> Most subvolumes can be mounted with noatime, except for /home where I frequently need to sort files by modification time. That doesn't sound right. Noatime turns off recording of the last access time, not modification.

IIRC, noatime is useful everywhere except /var/spool or /var/mail where certain daemons may depend on access time correctness.

You can't depend on access time correctness... Because someone else can come along and grep through all your files and now they're all accessed right now.
Post reply on HN