!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

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

Load older messages


SenderMessageTime
14 Nov 2024
@k900:0upti.meK900Then possibly yes20:40:22
@k900:0upti.meK900I'm not sure when exactly the default config template was added20:40:33
@k900:0upti.meK900Also, for flakes, we have a page in the docs: https://nix-community.github.io/NixOS-WSL/how-to/nix-flakes.html20:40:37
@litelotus:matrix.orgLiteLotusshould i be able to just import that flake?20:41:05
@k900:0upti.meK900What "that" flake?20:42:03
@k900:0upti.meK900The example is just that, an example20:42:26
@litelotus:matrix.orgLiteLotusnixos-wsl20:42:27
@k900:0upti.meK900But you can copy what the example does20:42:30
@k900:0upti.meK900To get the right modules20:42:34
@litelotus:matrix.orgLiteLotusyeah thats what i mean20:42:37
@k900:0upti.meK900You can, and even should20:42:47
@litelotus:matrix.orgLiteLotusok, but now im confused on where to import the module20:47:45
@k900:0upti.meK900Anywhere you would import a module into your configuration20:48:10
@k900:0upti.meK900Just like you already do with whatever other modules you're importing20:48:17
@litelotus:matrix.orgLiteLotusok, ive added it into the flake.nix file20:49:08
@litelotus:matrix.orgLiteLotusbut im not sure how to reference it20:49:13
@k900:0upti.meK900How are you referencing your other inputs?20:49:35
@k900:0upti.meK900Do the same thing, but for this one20:49:39
@litelotus:matrix.orgLiteLotus

  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:matrix.orgLiteLotuslike that20:50:34
@litelotus:matrix.orgLiteLotusbut this isnt a homeManager module20:50:45
@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

Show newer messages


Back to Room ListRoom Version: 9