!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

332 Members
https://github.com/nix-community/NixOS-WSL56 Servers

Load older messages


SenderMessageTime
14 Nov 2024
@k900:0upti.meK900Where is it coming from?20:53:35
@litelotus:matrix.orgLiteLotusi dont know, thats what im asking20:53:43
@litelotus:matrix.orgLiteLotusthis is in the example you sent me20:53:48
@k900:0upti.meK900OK so the magic words are20:54:01
@litelotus:matrix.orgLiteLotushttps://nix-community.github.io/NixOS-WSL/how-to/nix-flakes.html20:54:09
@k900:0upti.meK900
imports = [ inputs.nixos-wsl.nixosModules.default ];
wsl.enable = true;
20:54:16
@k900:0upti.meK900But you need to understand your config20:54:23
@k900:0upti.meK900Because you clearly don't20:54:27
@litelotus:matrix.orgLiteLotusyeah i dont20:54:36
@litelotus:matrix.orgLiteLotusits less the config i dont understand, and more the relationship between imports and the files20:55:10
@litelotus:matrix.orgLiteLotusalso, i still got the same error20:56:33
@k900:0upti.meK900What did you change?20:56:53
@k900:0upti.meK900And how are you building it?20:56:57
@litelotus:matrix.orgLiteLotus
error:
       Failed assertions:
       - The ‘fileSystems’ option does not specify your root file system.```
20:56:58
@litelotus:matrix.orgLiteLotus
In reply to @k900:0upti.me
What did you change?
https://git.litelot.us/litelotus/.nixos/src/commit/0394400a559adef03f73254dbd1fef19865e9314/flake.nix#L20
https://git.litelot.us/litelotus/.nixos/src/commit/0ac37bf429c4ff460ca21f98e7f11ff14f69aafb/modules/wsl/system.nix#L4
20:59:02
@k900:0upti.meK900That file is most definitely not evaluated20:59:24
@k900:0upti.meK900 Because this can't possibly evaluate in pure mode:

  imports = [
    <nixos-wsl/modules>
  ];
20:59:36
@litelotus:matrix.orgLiteLotus
In reply to @k900:0upti.me
And how are you building it?
sudo nixos-rebuild switch --flake ~/.nixos#wsl
21:00:04
@k900:0upti.meK900OK that's fine21:02:50
@k900:0upti.meK900Then you just need to figure out why that module is not being imported at all21:02:59
@litelotus:matrix.orgLiteLotuswasnt in the default, it is now, but its still giving me the same error21:03:23
@litelotus:matrix.orgLiteLotushttps://git.litelot.us/litelotus/.nixos/src/commit/7e2a292e5f810007ea0d6c9be59fd0be72fea51a/modules/wsl/default.nix#L521:04:03
@k900:0upti.meK900Well it's still not imported then21:04:08
@k900:0upti.meK900 Because again, the <channel reference> would instantly abort 21:04:15
@litelotus:matrix.orgLiteLotushmmmmm21:04:17
@litelotus:matrix.orgLiteLotusi got rid of that21:04:29
@k900:0upti.meK900OK, it's not imported because you're never importing that entire directory21:05:59
@k900:0upti.meK900https://git.litelot.us/litelotus/.nixos/src/commit/7e2a292e5f810007ea0d6c9be59fd0be72fea51a/hosts/default.nix#L6-L821:06:09
@litelotus:matrix.orgLiteLotuslook alittle lower21:06:35
@litelotus:matrix.orgLiteLotushttps://git.litelot.us/litelotus/.nixos/src/commit/7e2a292e5f810007ea0d6c9be59fd0be72fea51a/hosts/default.nix#L3221:06:36

Show newer messages


Back to Room ListRoom Version: 9