From 482a74a5e0bcc8e7eb8fcfbde8684b7ae0a8b3ab Mon Sep 17 00:00:00 2001 From: Oliver Davies Date: Tue, 8 Aug 2023 13:43:44 +0100 Subject: [PATCH] fix(wsl2): inherits, import paths, unfree packages --- system/wsl2/default.nix | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/system/wsl2/default.nix b/system/wsl2/default.nix index e409080..5be1beb 100644 --- a/system/wsl2/default.nix +++ b/system/wsl2/default.nix @@ -1,14 +1,24 @@ { inputs, username }: inputs.home-manager.lib.homeManagerConfiguration { + extraSpecialArgs = { inherit inputs; }; + modules = [ + { + nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (inputs.nixpkgs.lib.getName pkg) [ + "intelephense" + "postman" + "tabnine" + ]; + } + { imports = [ - ../home-manager/modules/common.nix - ../home-manager/modules/git.nix - ../home-manager/modules/home-manager.nix - ../home-manager/modules/tmux.nix - ../home-manager/modules/zsh.nix + ../../home-manager/modules/common.nix + ../../home-manager/modules/git.nix + ../../home-manager/modules/home-manager.nix + ../../home-manager/modules/tmux.nix + ../../home-manager/modules/zsh.nix ]; } ];