!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

338 Members
https://github.com/nix-community/NixOS-WSL57 Servers

Load older messages


SenderMessageTime
9 Mar 2025
@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
@k900:0upti.meK900It's not11:06:40
@k900:0upti.meK900 nixos-wsl.nixosModules.default is something you added 11:06:47
@k900:0upti.meK900Remove that11:06:51
@balanced_design:matrix.orgbalanced_designOk wow your right, I thought I put the configuration bad to my copy of the starting one11:08:30
@balanced_design:matrix.orgbalanced_design* Ok wow your right, I thought I put the configuration back to my copy of the starting one11:09:06
@balanced_design:matrix.orgbalanced_designSorry. Thank you so much11:09:42
@balanced_design:matrix.orgbalanced_designI guess if I didnt have the comments I would have noticed I forgot to remove that line11:10:07
12 Mar 2025
@thebus:matrix.orgJaco joined the room.19:58:27
13 Mar 2025
@k900:0upti.meK900https://github.com/microsoft/WSL/releases/tag/2.5.102:10:20
@k900:0upti.meK900 They're trying to ship 6.6 again 02:10:28
@nzbr:nzbr.denzbr (they/it)They also added a mount at /run/user, so we'll need to watch if that breaks again11:14:11
@k900:0upti.meK900I'll update in a bit and check11:15:38
@k900:0upti.meK900https://github.com/nix-community/NixOS-WSL/pull/64112:18:04
@k900:0upti.meK900OK this gets things back to mostly normal for me12:18:15
@k900:0upti.meK900First change is trivial, second is a little wacky, but should only affect setups with multiple logged in users on older WSL12:19:11
@k900:0upti.meK900And something in 2.5.1 changed so that we nearly always lose the race otherwise12:19:31
@nzbr:nzbr.denzbr (they/it) instead of setting the command to /bin/true, can't we just disable the service entirely? 12:21:28
@k900:0upti.meK900No12:22:46
15 Mar 2025
@isabel:isabelroses.comisabel changed their profile picture.14:46:42

Show newer messages


Back to Room ListRoom Version: 9