| 24 Feb 2025 |
Arian | * I just found out that systemd-repart has a —generate-fstab flag that uses MountPoints= to synthesize an fstab file | 22:07:42 |
Arian | so we can use systemd.repart.partitions as a full replacement for fileSystems | 22:08:02 |
ElvishJerricco | oh | 22:09:08 |
ElvishJerricco | that's extremely interesting | 22:09:13 |
Arian | also has a —generate-crypttab | 22:09:18 |
Arian | yeh this is very dope | 22:09:54 |
ElvishJerricco | Arian: I think there's an issue here though. fstab is a dependency of toplevel, and a repart image depends on toplevel | 22:11:06 |
ElvishJerricco | so you can't use repart to get the fstab without making an infinite loop | 22:11:23 |
ElvishJerricco | unless you use a mock repart config that doesn't include toplevel | 22:11:35 |
Arian | we already have that. image.repart.definitions includes toplevel but systemd.repart.definitions does not | 22:12:55 |
Arian | it’s a bit hacky but can make it work ? | 22:13:00 |
ElvishJerricco | oh, ok | 22:13:09 |
ElvishJerricco | well I'm definitely interested in this | 22:13:17 |
| Saturn changed their profile picture. | 22:36:11 |
| 25 Feb 2025 |
@marie:marie.cologne | could someone here have a look at this?
https://github.com/NixOS/nixpkgs/pull/372979
would be nice to have this working in the next release, and we should make sure this doesn't lock anyone out with the ssh changes | 10:16:18 |
| 26 Feb 2025 |
@srestegosaurio:tchncs.de | In reply to @arianvp:matrix.org so we can use systemd.repart.partitions as a full replacement for fileSystems What advantages could it have? Or is this related to a specific usecae? | 06:03:55 |
Arian | The main complaint about nixos that I hear from people is that it's too much like arch Linux and gentoo. The fact that our manual spends the first whole chapter telling you to type manual partitioning commands into a cli is terrible sales pitch | 08:21:49 |
Arian | What if we have a partition scheme that just is nix code and then takes care of both partitioning your disk and mounting your disks once installed. Suddenly you can replace the entire first chapter with 4 lines of nix | 08:22:29 |
Arian | That's the usecase | 08:22:42 |
K900 | Isn't that just disko | 08:22:46 |
K900 | And also like | 08:22:48 |
K900 | We have a GUI installer? | 08:22:50 |
K900 | Maybe we should advertise that more | 08:23:07 |
Arian | Yes disko does the same. But it's not upstreamed yet. But I'm a bit more fan of repart's model | 08:23:52 |
Arian | As it also runs during runtime. So can extend partitions etc. Add new ones | 08:24:28 |
Arian | The repart stuff is in nixos. Disko is not. | 08:25:09 |
Arian | Also Disko is not part of nixos-install | 08:25:18 |
Arian | Nothing against the creators of Disko. But I want less shell code running during activation time not more. We've been on a slow but steady quest to replace all of activation scripts with systemd-native alternatives to support shipping nixos images that have no interpreters shipped whatsoever | 08:27:33 |
Arian | So to me repart would be the natural first choice | 08:27:51 |
Arian | But sleeping on it for a night the fstab generation is not that exciting lol. As we don't generate fstab at activation time. We generate it at build time already.
Still think we should have a nice way of defining partitions and fileSystems in a single DSL though | 08:29:32 |