| 14 Nov 2024 |
LiteLotus | this is before that | 20:50:48 |
LiteLotus | inputs will still work? | 20:50:57 |
K900 | It's a normal NixOS module | 20:51:01 |
K900 | That you import like any normal NixOS module | 20:51:07 |
K900 | Which you already do in a bunch of places in your config | 20:51:14 |
LiteLotus | cool ok | 20:51:26 |
LiteLotus | 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 | In where? | 20:53:23 |
K900 | What is nixos-wsl here? | 20:53:31 |
K900 | Where is it coming from? | 20:53:35 |
LiteLotus | i dont know, thats what im asking | 20:53:43 |
LiteLotus | this is in the example you sent me | 20:53:48 |
K900 | OK so the magic words are | 20:54:01 |
LiteLotus | https://nix-community.github.io/NixOS-WSL/how-to/nix-flakes.html | 20:54:09 |
K900 | imports = [ inputs.nixos-wsl.nixosModules.default ];
wsl.enable = true;
| 20:54:16 |
K900 | But you need to understand your config | 20:54:23 |
K900 | Because you clearly don't | 20:54:27 |
LiteLotus | yeah i dont | 20:54:36 |
LiteLotus | its less the config i dont understand, and more the relationship between imports and the files | 20:55:10 |
LiteLotus | also, i still got the same error | 20:56:33 |
K900 | What did you change? | 20:56:53 |
K900 | And how are you building it? | 20:56:57 |
LiteLotus | error:
Failed assertions:
- The ‘fileSystems’ option does not specify your root file system.```
| 20:56:58 |
LiteLotus | 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 | That file is most definitely not evaluated | 20:59:24 |
K900 | Because this can't possibly evaluate in pure mode:
imports = [
<nixos-wsl/modules>
];
| 20:59:36 |
LiteLotus | In reply to @k900:0upti.me And how are you building it? sudo nixos-rebuild switch --flake ~/.nixos#wsl | 21:00:04 |
K900 | OK that's fine | 21:02:50 |
K900 | Then you just need to figure out why that module is not being imported at all | 21:02:59 |
LiteLotus | wasnt in the default, it is now, but its still giving me the same error | 21:03:23 |