!apXxbtexmNGJaAryzM:nixos.org

NixOS on WSL

303 Members
https://github.com/nix-community/NixOS-WSL54 Servers

Load older messages


SenderMessageTime
14 Nov 2024
@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
@k900:0upti.meK900Where is it coming from?20:53:35
@litelotus:matrix.orgLiteLotusi dont know, thats what im asking20:53:43
@litelotus:matrix.orgLiteLotusthis is in the example you sent me20:53:48
@k900:0upti.meK900OK so the magic words are20:54:01
@litelotus:matrix.orgLiteLotushttps://nix-community.github.io/NixOS-WSL/how-to/nix-flakes.html20:54:09
@k900:0upti.meK900
imports = [ inputs.nixos-wsl.nixosModules.default ];
wsl.enable = true;
20:54:16
@k900:0upti.meK900But you need to understand your config20:54:23
@k900:0upti.meK900Because you clearly don't20:54:27
@litelotus:matrix.orgLiteLotusyeah i dont20:54:36
@litelotus:matrix.orgLiteLotusits less the config i dont understand, and more the relationship between imports and the files20:55:10
@litelotus:matrix.orgLiteLotusalso, i still got the same error20:56:33

Show newer messages


Back to Room ListRoom Version: 9