| 25 Jul 2024 |
gdarends | Is it a disko thing or nixos thing? | 13:27:04 |
lassulus | a disko thing | 13:32:28 |
lassulus | but we lack documentation for it I realize :D | 13:34:32 |
lassulus | basically you can set preCreateHook postCreateHook preMountHook and postMountHook on most disko types | 13:36:03 |
lassulus | https://github.com/nix-community/disko/blob/master/example/zfs.nix#L55 | 13:36:05 |
lassulus | it's just a shell script snippet that gets inserted into the generated script, although there are some variables from the type available as shell variables | 13:39:37 |
gdarends | Thanks. I'll check it out | 14:43:22 |
| 26 Jul 2024 |
| rypervenche joined the room. | 17:27:17 |
rypervenche | While reading the QuickStart for disko, I saw this line:
However, you will need to include the partitioning and formatting configurations that you copied into /tmp/disk-config.nix in your configuration, rather than allowing NixOS to generate information about your file systems.
Is there a reason why one shouldn't just let NixOS generation information about my file systems? I'd like for my installs to be as vanilla as possible (as though they were completely installed manually) so I'm curious what pros and cons there are to just continuing the normal NixOS way
| 17:29:24 |
| 29 Jul 2024 |
| quentin joined the room. | 01:56:04 |
quentin | I'm trying to set up a ZFS root with disko. Without mountpoint set on the pool, the pool ends up mounted by disko at /mnt/zpool. So I set rootFsOptions.mountpoint = "/" which made the installer environment happy, but now the stage1 is failing with
mounting zpool on /...
stage 2 init script (/mnt-root//nix/store/...) not found
| 02:00:13 |
quentin | I'm guessing that means that the pool was supposed to mount at /mnt-root instead of /? How should I set the mountpoint options in disko to achieve that? | 02:00:41 |
| 31 Jul 2024 |
bashfulrobot | Qq. Do I have to add disko to my config? Or can I just write a nix file and run against it? Then run nix-install and leverage what it created? | 03:10:59 |
matthewcroughan | In reply to @bashfulrobot.:matrix.org Qq. Do I have to add disko to my config? Or can I just write a nix file and run against it? Then run nix-install and leverage what it created? You can do either, but it's much nicer if it's in your config, since then you'll get things mounted automatically based on your disko config | 03:24:08 |
bashfulrobot | In reply to @matthewcroughan:defenestrate.it You can do either, but it's much nicer if it's in your config, since then you'll get things mounted automatically based on your disko config Ahhhhh. Ok. I didn’t realize that the config still “did stuff” post creation of the file system, etc. | 08:01:36 |
bashfulrobot | So I guess the process would be to write it into my config, use nix run on my disko file, install , rebuild with my config files which include the same disko file. August the direct! | 10:22:39 |
| 2 Aug 2024 |
nrv | There's currently no option to run commands after all mounts after creation is there? (I need to set owners & modes & acls) | 11:56:52 |
nrv | Or maybe i can hack something like take all the mountpoints sort them and then take last and condition the postMountHook on it (which is annoying) | 12:00:26 |
nrv | * Or maybe i can hack something like take all the mountpoints sort them and then take last and condition the postMountHook on it (which is annoying and i'm not sure will work) | 12:02:11 |
nrv | To clarify. I think that postMountHook runs after every mount. That is correct right? | 12:09:46 |
lassulus | only the initial mount done by the disko cli or nixos-anywhere, the mount in the installer | 12:40:47 |
nrv | i mean every mount that is done by disko installer | 12:50:49 |
nrv | that is runs after / is mounted, after /home is mounted, and after whatever is mounted else | 12:51:34 |
nrv | at least that's what it seemed to me | 12:51:56 |
nrv | * that it runs after / is mounted, after /home is mounted, and after whatever is mounted else | 12:52:12 |
nrv | * that it runs after / is mounted, after /home is mounted, and after whatever else is mounted | 12:52:32 |
nrv | * at least that's what it seemed to me, that instead of a single run after all mounts is done
maybe i messed up something | 12:53:19 |
nrv | * at least that's what it seemed to me, that instead of a single run after all mounts is done it runs after each mount
maybe i messed up something | 12:56:09 |
| fiioul joined the room. | 19:38:14 |
| 5 Aug 2024 |
rypervenche | Is it possible to create a configuration using BTRFS RAID1? | 23:40:25 |