18 Oct 2024 |
emily | (though more like half a year from now for unstable) | 07:55:41 |
Moritz Sanft | Thanks for the feedback on the PR @nikstur - a little disclaimer: I'll probably only get to work on it on Monday | 14:33:40 |
Moritz Sanft | Who of you guys will be at NixCon? | 14:33:50 |
19 Oct 2024 |
raitobezarius | ElvishJerricco i'm looking at modprobe@.service in the initrd and it seems to be missing, is that intended or am I holding this wrong? | 09:21:10 |
raitobezarius | did I miss a replacement mechanism to tether the modprobe requests from various services in the initrd? | 09:21:25 |
raitobezarius | yeah, it feels like that modprobe@.service is missing which hamper any systemd service that depends on automatic module loading in the units decls | 09:43:34 |
raitobezarius | (e.g. configfs) | 09:43:37 |
ElvishJerricco | raitobezarius: it was added in a recent pr | 11:41:09 |
ElvishJerricco | yea, I added it here: https://github.com/NixOS/nixpkgs/pull/343574 | 11:44:01 |
| jwillikers joined the room. | 12:09:16 |
ma27 | Redacted or Malformed Event | 12:20:03 |
Arian | ]$ /run/current-system/bin/switch-to-configuration --help
Error: This program does not support being ran outside of the switch-to-configuration environment
| 15:15:45 |
Arian | what does this mean? | 15:15:47 |
Arian | this used to just work. | 15:15:52 |
Arian | sounds like this will break like 90% of all deploy tools | 15:17:25 |
Arian | a lot of tools treat it as public interface. I don't think we can break this | 15:18:27 |
Arian | oh. the error goes away when I run it as sudo | 15:19:14 |
Arian | that's one confusing error message | 15:19:47 |
hexa | Jared Baur: ^ | 16:45:13 |
raitobezarius | In reply to @elvishjerricco:matrix.org raitobezarius: it was added in a recent pr thx | 16:46:20 |
| mwoodpatrickmx joined the room. | 17:00:40 |
Jared Baur | This is how the perl script fails when ran as an unprivileged user:
$ ./result/bin/switch-to-configuration dry-activate
mkdir /run/nixos: Permission denied at ./result/bin/switch-to-configuration line 99.
| 17:36:32 |
Arian | Yeh but if you don't pass it any arguments it doesn't fail I think. | 17:41:02 |
Arian | I.e. --help shows the different available commands | 17:41:23 |
ElvishJerricco | oh, yea, we should probably implement a --help if the perl one had | 17:50:42 |
ElvishJerricco | * oh, yea, we should probably implement a --help if the perl one had that | 17:50:51 |
Jared Baur | https://github.com/NixOS/nixpkgs/pull/349834 | 18:28:33 |
Jared Baur | The perl one does not have a --help, hopefully soon enough we don't have to worry about what it does or doesn't have :) | 18:29:36 |
20 Oct 2024 |
gdamjan | isn't there an option in switch-to-configuration to NOT restart some services? | 14:33:27 |
Jared Baur | I believe you can get that behavior by setting `serviceConfig.X-RestartIfChanged = false` on your service | 19:18:05 |