fix(home-manager): build error

This commit is contained in:
xinyangli 2024-07-15 10:54:25 +08:00
parent 9d54c2d56c
commit f06e1710a1
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
2 changed files with 5 additions and 1 deletions

View file

@ -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=

View file

@ -105,6 +105,8 @@ in
};
};
config = mkIf cfg.enable {
nixpkgs.config.allowUnfree = true;
home.packages = lib.mkMerge ([
[ pkgs.clang-tools ]
] ++ zipAttrsWithLanguageOption "systemPackages");