!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

285 Members
https://github.com/nix-community/NixOS-WSL55 Servers

Load older messages


SenderMessageTime
3 May 2024
@k900:0upti.meK900No 11:33:33
@k900:0upti.meK900installPhase is not "when this is installed to the system" 11:33:45
@k900:0upti.meK900It can happen on another machine entirely 11:33:51
@k900:0upti.meK900And is fully sandboxed11:33:56
@gleydar:beeper.comgleydarah 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:beeper.comgleydar * 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:0upti.meK900Yes 11:34:50
@gleydar:beeper.comgleydarOh well - no matter, then i'll just check for the binaries and fetch them if i need to11:35:43
@gleydar:beeper.comgleydarthanks for your help! This at least simplifies my package to be only a shell script 😄 11:36:11
@nzbr:nzbr.denzbr (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:beeper.comgleydar
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:nzbr.denzbr (they/it)Even better then, you could add a script that copies the binaries to the existing service as an ExecStartPre value11:40:33
@gleydar:beeper.comgleydar
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:0upti.meK900Random thought19:01:32
@k900:0upti.meK900We currently don't create a /run/booted-system19:01:38
@k900:0upti.meK900Should we?19:01:46
@k900:0upti.meK900Do we ever need one?19:01:49
@k900:0upti.meK900If yes, when?19:01:51
@whovian9369:matrix.orgWhovian9369
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:matrix.orgWhovian9369
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:matrix.orgWhovian9369 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:matrix.orgWhovian9369 * 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:matrix.orgWhovian9369 * 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:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Should we?
yes
17:07:13
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
Do we ever need one?
yes
17:07:19
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
If yes, when?
eg diffing booted vs. running system
17:07:28
@sandro:supersandro.deSandro 🐧https://github.com/NixOS/nixpkgs/commit/7b8511b5e551f2b1f4a63b32ff2122ded7d9fdbc17:07:53
@sandro:supersandro.deSandro 🐧PR was declined17:07:55
@sandro:supersandro.deSandro 🐧
In reply to @k900:0upti.me
I think there might be PAM fuckery
So what are we doing about that? revert the wrapper?
17:08:15
@k900:0upti.meK900Enable lingering by default somehow maybe?17:26:51

Show newer messages


Back to Room ListRoom Version: 9