3 May 2024 |
K900 | Just do the obvious thing | 09:57:11 |
K900 | It'll be fine | 09:57:12 |
Whovian9369 | Thanks for the unearned confidence 😅 | 10:07:37 |
Whovian9369 | ("Unearned" by me, I mean. :P) | 10:09:15 |
Whovian9369 | I found https://nix-community.github.io/NixOS-WSL/howto.html which seems to answer my question! | 10:33:20 |
gleydar | Heyho, I have a probably stupid question because im pretty new to nix and how to package programs for it 😄
I want to package a tool that enables vpn-connectivity for my stupid corporate vpn which refuses to work even with all the microsoft improvements to connectivity.
This tool needs some binaries in Windows as well. Would it be a good idea to copy those tools to the windows path in the installPhase? | 11:33:18 |
K900 | No | 11:33:33 |
K900 | installPhase is not "when this is installed to the system" | 11:33:45 |
K900 | It can happen on another machine entirely | 11:33:51 |
K900 | And is fully sandboxed | 11:33:56 |
gleydar | ah okay - so basically just the last step in the build process to move the binaries to the correct location in the relative store path? | 11:34:26 |
gleydar | * ah okay - so basically just the last step in the build process to move the binaries to the correct location in the store path? | 11:34:40 |
K900 | Yes | 11:34:50 |
gleydar | Oh well - no matter, then i'll just check for the binaries and fetch them if i need to | 11:35:43 |
gleydar | thanks for your help!
This at least simplifies my package to be only a shell script 😄 | 11:36:11 |
nzbr (they/it) | You could, in theory, do it in a systemd oneshot service (I'd give you an example, but I'm on my phone right now) | 11:38:08 |
gleydar | In reply to @nzbr:nzbr.de You could, in theory, do it in a systemd oneshot service (I'd give you an example, but I'm on my phone right now) Uh, this would make even more sense I guess 🤔 The tool runs as a systemd service in the end anyways | 11:38:46 |
nzbr (they/it) | Even better then, you could add a script that copies the binaries to the existing service as an ExecStartPre value | 11:40:33 |
gleydar | In reply to @nzbr:nzbr.de Even better then, you could add a script that copies the binaries to the existing service as an ExecStartPre value And I can configure the path in a single location and/or override it easily 😄 That seems like the best solution possible... Thanks! | 11:43:20 |
K900 | Random thought | 19:01:32 |
K900 | We currently don't create a /run/booted-system | 19:01:38 |
K900 | Should we? | 19:01:46 |
K900 | Do we ever need one? | 19:01:49 |
K900 | If yes, when? | 19:01:51 |
Whovian9369 | In reply to @whovian9369:matrix.org I found https://nix-community.github.io/NixOS-WSL/howto.html which seems to answer my question! Hm, it looks like I'm having trouble figuring out how to properly set up the flake that I want 😅
Is /etc/nixos/nixos-wsl required to have locally on disk for use with a Flake-based config?
| 22:33:49 |
Whovian9369 | In reply to @whovian9369:matrix.org I found https://nix-community.github.io/NixOS-WSL/howto.html which seems to answer my question! * Hm, it looks like I'm having trouble figuring out how to properly set up the flake that I want 😅
Is /etc/nixos/nixos-wsl/ required to have locally on disk for use with a Flake-based config?
| 22:41:15 |
Whovian9369 | Okay so that import seems to not be needed since I'm using outputs.nixosConfigurations.nixos-wsl.modules = [ nixos-wsl.nixosModules.wsl ] | 22:54:59 |
Whovian9369 | * Okay so that imports = [ nixos-wsl/modules ] in my configuration.nix seems to not be needed since I'm using outputs.nixosConfigurations.nixos-wsl.modules = [ nixos-wsl.nixosModules.wsl ] in the flake | 22:55:38 |
Whovian9369 | * Okay so that imports = [ nixos-wsl/modules ] in my configuration.nix seems to not be needed since I'm using outputs.nixosConfigurations.nixos-wsl.modules = [ nixos-wsl.nixosModules.wsl ] in the flake. Edit: Turns out that I didn't need it anymore, period -- Oops, that's been sitting and taking space for a bit now, haha. | 23:11:33 |
4 May 2024 |
Sandro 🐧 | In reply to @k900:0upti.me Should we? yes | 17:07:13 |