!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
14 Nov 2024
@litelotus:matrix.orgLiteLotusthis is before that20:50:48
@litelotus:matrix.orgLiteLotusinputs will still work?20:50:57
@k900:0upti.meK900It's a normal NixOS module20:51:01
@k900:0upti.meK900That you import like any normal NixOS module20:51:07
@k900:0upti.meK900Which you already do in a bunch of places in your config20:51:14
@litelotus:matrix.orgLiteLotuscool ok20:51:26
@litelotus:matrix.orgLiteLotus

that that import replaces the "nixos-wsl" in here ```nix
modules = [
nixos-wsl.nixosModules.default
{
system.stateVersion = "24.05";
wsl.enable = true;
}
];

20:52:13
@k900:0upti.meK900In where?20:53:23
@k900:0upti.meK900 What is nixos-wsl here? 20:53:31
@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

Show newer messages


Back to Room ListRoom Version: 9