!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
1 May 2024
@daschw:matrix.org@daschw:matrix.org joined the room.18:53:23
2 May 2024
@ottidmes:matrix.orgottidmes Any idea why I am getting the nixos-rebuild manpage everytime I run nixos-rebuild --flake .#machine? 08:47:35
@ottidmes:matrix.orgottidmesGoing to try recovery and then pin WSL to an official release rather than just main/master08:53:26
@nzbr:nzbr.denzbr (they/it)I've never seen that happen before (neither on bare-metal nor on WSL). Which nixpkgs version are you using?08:59:23
@ottidmes:matrix.orgottidmes23.11 5bf1cadb72ab4e77cb0b700dab76bcdaf88f706b09:02:46
@ottidmes:matrix.orgottidmesTried the recovery, but it doesn't mount /mnt/c where my config is located... Going to try just calling an older version of nixos-rebuild, see if that helps09:03:56
@simonyde:matrix.orgSimon Yde
In reply to @ottidmes:matrix.org
Any idea why I am getting the nixos-rebuild manpage everytime I run nixos-rebuild --flake .#machine?
You aren't specifying a subcommand like boot or switch
09:04:28
@ottidmes:matrix.orgottidmesDamn, that's it, feel so stupid now09:06:12
@ottidmes:matrix.orgottidmesThanks for the help! At least now I know I should work on my system recovery situation, as in my current setup I would have a hard time then. And I should update my script to default or error on missing a subcommand09:08:53
3 May 2024
@whovian9369:matrix.orgWhovian9369

Hey y'all, I'm beginning a switch from using /etc/nixos/configuration.nix and $HOME/.config/home-manager/{flake,home}.nix to having $HOME/.config/nixos/{configuration,flake,home}.nix

Happen to have any tips or warnings for going from a "Path-based" system config to a Flake-based one?

09:48:36
@whovian9369:matrix.orgWhovian9369 *

Hey y'all, I'm beginning a switch from using /etc/nixos/configuration.nix and $HOME/.config/home-manager/{flake,home}.nix to having $HOME/.config/nixos/{configuration,flake,home}.nix

Happen to have any tips or warnings for going from a "Path/Channel-based" system config to a Flake-based one?

09:49:04
@whovian9369:matrix.orgWhovian9369 (Specific inputs entries, commits to pin against, etc) 09:49:19
@k900:0upti.meK900Just do the obvious thing09:57:11
@k900:0upti.meK900It'll be fine09:57:12
@whovian9369:matrix.orgWhovian9369Thanks for the unearned confidence 😅10:07:37
@whovian9369:matrix.orgWhovian9369 ("Unearned" by me, I mean. :P) 10:09:15
@whovian9369:matrix.orgWhovian9369I found https://nix-community.github.io/NixOS-WSL/howto.html which seems to answer my question!10:33:20
@gleydar:beeper.comgleydarHeyho, 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: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

Show newer messages


Back to Room ListRoom Version: 9