From 40d6b9285a1a97ffcae17a2e1458d1de85b4a624 Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Mon, 25 Mar 2024 11:49:33 +0000 Subject: [PATCH] Fix wsl2 configuration --- flake.nix | 2 +- lib/wsl2/default.nix | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index b2b26f1..41a3db0 100644 --- a/flake.nix +++ b/flake.nix @@ -32,7 +32,7 @@ nixedo = mkNixos { desktop = true; hostname = "nixedo"; }; }; - homeConfigurations = { wsl2 = mkWsl; }; + homeConfigurations = { wsl2 = mkWsl { system = "x86_64-linux"; }; }; }; }; } diff --git a/lib/wsl2/default.nix b/lib/wsl2/default.nix index 49e029b..2d6a226 100644 --- a/lib/wsl2/default.nix +++ b/lib/wsl2/default.nix @@ -1,4 +1,6 @@ -{ inputs, self, system, username, }: +{ inputs, self, username }: +{ system }: + let pkgs = inputs.nixpkgs.legacyPackages.${system}; @@ -11,6 +13,8 @@ let in inputs.home-manager.lib.homeManagerConfiguration { inherit pkgs; + extraSpecialArgs = { inherit self; }; + modules = [{ imports = [ shared-config ];