Sender | Message | Time |
---|---|---|
15 Dec 2024 | ||
ember | * I'm running lix 2.91.1 on darwin | 16:23:55 |
ember | * I'm running lix 2.91.1 on darwin (and also tested this on x86_64-linux with the latest lix-master) | 16:25:28 |
ember | * I'm running lix 2.91.1 on darwin (and also tested this on x86_64-linux with the latest lix-main) | 16:25:34 |
ember | And of course the copying is done every time the command is run (or something is evaluated) | 16:30:55 |
Mel changed their profile picture. | 21:46:29 | |
16 Dec 2024 | ||
dawn joined the room. | 04:50:13 | |
merlindawizard joined the room. | 09:15:47 | |
Tammi (ey/em) joined the room. | 12:59:18 | |
dom joined the room. | 15:11:08 | |
dom | hi. i've been trying to update a flake-based nixos system on a machine with no internet access. for the last week i've been successfully doing it like so:
this worked well until today, as now the i've tried all the tricks from the various threads about this, but i've had no luck. i'm now surprised it even worked at all. now i have a system that i can no longer update then i saw this lix issue and now i have some hope: i'm currently checking out lix to see if it might be more suited for use on an offline machine. does anyone here have any experience or advice for me? :) | 15:28:53 |
K900 | Why nixos-rebuild at all? | 15:29:25 |
K900 | Just switch-to-configuration to your new system | 15:29:33 |
K900 | Presumably you don't need deployment history on an airgapped machine | 15:29:46 |
K900 | And if you do you can just call nix-env yourself | 15:30:02 |
dom | thank you K900! i will try this. how would i find the correct
| 15:48:10 |
dom | aha, it tells me on the
i can then run | 16:01:48 |
dom | * aha, it tells me on the
i can then run | 16:01:56 |
dom | K900: this seems to works perfectly, thank you so much | 16:06:36 |
dom | oh, interesting, it seems switch-to-configuration does not persist a reboot 😕https://github.com/NixOS/nixpkgs/issues/82851 | 16:44:32 |
K900 | You want switch-to-configuration switch | 16:44:46 |
K900 | That should update the bootloader config | 16:44:51 |
dom | it doesn't appear to do that for me (same for the people in that issue) | 16:45:38 |
K900 | That sounds wrong | 16:46:03 |
K900 | What bootloader setup are you using? | 16:46:07 |
dom |
| 16:49:58 |
puck | In reply to @k900:0upti.mealso, add the closure to the system profile | 16:50:37 |
dom | the discussion in the link above (from 2020-2024) does suggest that switch-to-configuration switch doesn't work as it suggests. is there another way to update the bootloader config? | 17:00:26 |
dom | sorry i realise this is lix and i'm now discussing general nix stuff, happy to go elsewhere if this is not appropriate | 17:01:25 |
puck | In reply to @dxmh:matrix.orgyou need to run nix-env -p /nix/var/nix/profiles/system --set {system closure} first before the switch ; the profiles are what make it into the configuration | 17:11:10 |
puck | * you need to run nix-env -p /nix/var/nix/profiles/system --set {system closure} first before the switch ; the profiles are what make it into the bootloader config | 17:11:16 |