From f06e1710a1ca317e6e01c2233f89034d66b38d2d Mon Sep 17 00:00:00 2001 From: xinyangli Date: Mon, 15 Jul 2024 10:54:25 +0800 Subject: [PATCH] fix(home-manager): build error --- home/xin/common/default.nix | 4 +++- modules/home-manager/vscode.nix | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/home/xin/common/default.nix b/home/xin/common/default.nix index 44cb225..0eb2bae 100644 --- a/home/xin/common/default.nix +++ b/home/xin/common/default.nix @@ -1,4 +1,4 @@ -{ inputs, pkgs, ... }: { +{ inputs, pkgs, lib, ... }: { imports = [ ]; home.packages = with pkgs; [ @@ -19,6 +19,8 @@ inetutils ]; + + nix.package = lib.mkForce pkgs.nixVersions.latest; nix.extraOptions = '' extra-substituters = https://nix-community.cachix.org extra-trusted-public-keys = nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs= diff --git a/modules/home-manager/vscode.nix b/modules/home-manager/vscode.nix index 32b09e7..6042b6a 100644 --- a/modules/home-manager/vscode.nix +++ b/modules/home-manager/vscode.nix @@ -105,6 +105,8 @@ in }; }; config = mkIf cfg.enable { + nixpkgs.config.allowUnfree = true; + home.packages = lib.mkMerge ([ [ pkgs.clang-tools ] ] ++ zipAttrsWithLanguageOption "systemPackages");