| 14 Nov 2024 |
K900 | Then possibly yes | 20:40:22 |
K900 | I'm not sure when exactly the default config template was added | 20:40:33 |
K900 | Also, for flakes, we have a page in the docs: https://nix-community.github.io/NixOS-WSL/how-to/nix-flakes.html | 20:40:37 |
LiteLotus | should i be able to just import that flake? | 20:41:05 |
K900 | What "that" flake? | 20:42:03 |
K900 | The example is just that, an example | 20:42:26 |
LiteLotus | nixos-wsl | 20:42:27 |
K900 | But you can copy what the example does | 20:42:30 |
K900 | To get the right modules | 20:42:34 |
LiteLotus | yeah thats what i mean | 20:42:37 |
K900 | You can, and even should | 20:42:47 |
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 |