!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

328 Members
https://github.com/nix-community/NixOS-WSL54 Servers

Load older messages


SenderMessageTime
28 Feb 2025
@balanced_design:matrix.orgbalanced_designthank you12:05:22
@k900:0upti.meK900Generally you want to have a single entry point12:05:28
@k900:0upti.meK900If it's a configuration.nix, provide that12:05:35
@k900:0upti.meK900If it's a flake.nix, provide that12:05:40
@balanced_design:matrix.orgbalanced_designok after some more thought I figured out how I got to my wrong conclusion.12:08:11
@balanced_design:matrix.orgbalanced_designThank you so much <312:09:10
1 Mar 2025
@achnazoor:matrix.org@achnazoor:matrix.org left the room.12:44:16
3 Mar 2025
@pykee03:matrix.orgpykee03 joined the room.23:22:18
5 Mar 2025
@98765abc:mozilla.org98765abcRedacted or Malformed Event11:34:20
@98765abc:mozilla.org98765abcRedacted or Malformed Event11:35:55
@98765abc:mozilla.org98765abc* Hi guys.I'm running gdbserver of probers.exe(windows version by binfmt) inside WSL. I'm not sure why I need to run two commands simultaneously to access the GDB port of probe-rs in WSL. The network mode is mirrored.Any suggestion?11:36:36
6 Mar 2025
@ceph3us:matrix.orgcepheus joined the room.16:38:23
@ceph3us:matrix.orgcepheus changed their display name from cepheus (Old) to cepheus.16:39:34
7 Mar 2025
@qyriad:katesiria.orgQyriad changed their display name from Qyriad to qyriad.16:38:54
8 Mar 2025
@qyriad:katesiria.orgQyriad changed their display name from qyriad to Qyriad.21:41:03
9 Mar 2025
@balanced_design:matrix.orgbalanced_design

I cannot get a configuration in the home directory to work. All of these dont work with a configuration.nix in home/nixos while the working directory is the normal default startup directory of home/nixos:

  • sudo nixos-rebuild switch --upgrade-all -I nixos-config=configuration.nix
  • sudo nixos-rebuild switch --upgrade-all -I nixos-config=home/nixos/configuration.nix
  • sudo nixos-rebuild switch --upgrade-all -I nixos-config=/home/nixos/configuration.nix
  • sudo nixos-rebuild switch --upgrade-all -I nixos-config=~/configuration.nix

sudo nixos-rebuild switch --upgrade-all works though but targets /etc/nixos/configuration.nix

11:02:28
@k900:0upti.meK900What do you mean by "don't work"?11:03:32
@balanced_design:matrix.orgbalanced_designimage.png
Download image.png
11:04:35
@balanced_design:matrix.orgbalanced_designError messages are differenat for each11:04:37
@balanced_design:matrix.orgbalanced_designan example and a bit11:04:46
@k900:0upti.meK900It's the rest of the error that's importan11:04:52
@k900:0upti.meK900* It's the rest of the error that's important11:04:52
@balanced_design:matrix.orgbalanced_design
unpacking channels...
unpacking channels...
unpacking channels...
error:
       … while evaluating the attribute 'config'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'nixos-wsl'

       at /home/nixos/configuration.nix:17:5:

           16|     <nixos-wsl/modules>
           17|     nixos-wsl.nixosModules.default
             |     ^
           18|   ];
building Nix...
error:
       … while evaluating the attribute 'config'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'nixos-wsl'

       at /home/nixos/configuration.nix:17:5:

           16|     <nixos-wsl/modules>
           17|     nixos-wsl.nixosModules.default
             |     ^
           18|   ];
building the system configuration...
error:
       … while evaluating the attribute 'config.system.build.toplevel'

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:9:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |         ^
          323|         _module = checked (config._module);

       … while calling the 'seq' builtin

         at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:322:18:

          321|         options = checked options;
          322|         config = checked (removeAttrs config [ "_module" ]);
             |                  ^
          323|         _module = checked (config._module);

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: undefined variable 'nixos-wsl'

       at /home/nixos/configuration.nix:17:5:

           16|     <nixos-wsl/modules>
           17|     nixos-wsl.nixosModules.default
             |     ^
           18|   ];
11:05:31
@balanced_design:matrix.orgbalanced_designThats the error for sudo nixos-rebuild switch --upgrade-all -I nixos-config=/home/nixos/configuration.nix11:05:45
@k900:0upti.meK900Yeah the issue is that your config is wrong11:05:54
@balanced_design:matrix.orgbalanced_designI guess Ill give the error for each11:05:55
@k900:0upti.meK900You're trying to import nixos-wsl both the channels way and the flakes way11:06:07
@k900:0upti.meK900And you need to decide which one you're using11:06:13
@k900:0upti.meK900You can't have both11:06:18
@balanced_design:matrix.orgbalanced_designThe configuration.nix is the default starting one with some comments?11:06:35

Show newer messages


Back to Room ListRoom Version: 9