| 14 Nov 2024 |
K900 | Did you download a tarball from the nixos-wsl repo? | 20:39:02 |
LiteLotus | followed the instructions in the github | 20:39:06 |
LiteLotus | yh | 20:39:07 |
K900 | That should have a starter configuration in /etc/nixos/configuration.nix | 20:39:12 |
K900 | Which also shows you how to import the modules | 20:39:21 |
LiteLotus | thats what the config in there is based off of | 20:39:27 |
LiteLotus | not on mine | 20:39:31 |
K900 | Did you download the release tag or the CI build? | 20:39:57 |
LiteLotus | release | 20:40:09 |
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 |