14 Nov 2024 |
LiteLotus | ok, but now im confused on where to import the module | 20:47:45 |
K900 | Anywhere you would import a module into your configuration | 20:48:10 |
K900 | Just like you already do with whatever other modules you're importing | 20:48:17 |
LiteLotus | ok, ive added it into the flake.nix file | 20:49:08 |
LiteLotus | but im not sure how to reference it | 20:49:13 |
K900 | How are you referencing your other inputs? | 20:49:35 |
K900 | Do the same thing, but for this one | 20:49:39 |
LiteLotus |
inputs,
pkgs,
...
}:{
imports = [inputs.ags.homeManagerModules.default];
programs.ags = {
enable = true;
configDir = inputs.ags-config;
extraPackages = with pkgs; [
gtksourceview
webkitgtk
accountsservice
];
};
}
| 20:50:29 |
LiteLotus | like that | 20:50:34 |
LiteLotus | but this isnt a homeManager module | 20:50:45 |
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 |