2 Oct 2021 |
Arian | And it'll then merge base.nix and genofire-specific.nix if that makes sense | 21:30:34 |
genofire | is it possible to glob the imports? | 21:31:34 |
genofire |
| 21:31:49 |
genofire | * {
}
| 21:32:06 |
genofire | * {
imports = [ conf.d/*.nix ];
}
| 21:32:48 |
Arian | No but there's a builtins.readDir function that returns all the files in a directory | 21:33:04 |
Arian | * No but there's a builtins.readDir function that returns all the files in a directory which you could use | 21:33:08 |
genofire | nice ;) | 21:33:19 |
Arian | I suggest playing around with it a bit in a vm | 21:34:32 |
genofire | okay, now the question - how to migrate at easy - i like to add on my current system another zfs/ROOT/nixos-dataset and to install it there - keep my /boot (and cryptsetup where is the zpool on) | 21:35:06 |
genofire | In reply to @arianvp:matrix.org I suggest playing around with it a bit in a vm i want to use it in "production" with fallback - otherwise i would not take the time to change somehing in the good running enviroment .... | 21:36:12 |
genofire | In reply to @arianvp:matrix.org I suggest playing around with it a bit in a vm * i want to use it in "production" with fallback - otherwise i would not take the time to change something in the good running archlinux environment .... | 21:36:38 |
Arian | I am not sure how good ZFS support is. I think it works (would check with grahamc (he/him) )
during installation you run a command named nixos-generate-config which should detect how your /mnt is mounted and detect cryptsetup and zfs is at play if all goes well.
I'm not sure if NixOS can be configured to not mess with your existing bootloader actually..
| 21:38:00 |
Arian | will probably work if the bootloader you have matches with the bootloader in the config and you skip the install-bootloader step during installation... | 21:38:46 |
Arian | NixOS supports atomic rollbacks and roll-forwards; so for each config change you get a new bootloader entry. so you're bootloadet entries will get a bit crowded | 21:39:22 |
Arian | the nixos-install command has a --no-bootloader flag | 21:40:12 |
Arian | * the nixos-install command has a --no-bootloader flag. | 21:40:15 |
genofire | https://nixos.wiki/wiki/NixOS_on_ZFS <- yes this docu does not lock fresh - there are noauto mount flags as replace for legacy as example | 21:41:24 |
Arian | so I think it'll work if you have systemd-boot and set systemd-boot in your nixos config, and then do the installation with --no-bootloader | 21:42:05 |
genofire | okay, that information is really nice - with bootloader entries ;) | 21:42:07 |
genofire | sounds like a solution which fit my purpose ;) | 21:42:45 |
genofire | thans | 21:42:48 |
genofire | thanks | 21:42:51 |
Arian | no problem. have fun hacking | 21:43:02 |
genofire | i believe i will ;) | 21:43:23 |
genofire | is there a nixos-container flag, which create a new zfs dataset for the container? | 21:45:35 |
Arian | Nope | 22:04:57 |
genofire | good weekend - maybe till in a few days ;) | 22:10:36 |
3 Oct 2021 |
genofire | In reply to @arianvp:matrix.org the nixos-install command has a --no-bootloader flag. That does not generate Boot entries ... | 13:04:29 |
genofire | After setting up luks manual - was not detected ... it works | 13:05:02 |