{ config, pkgs, lib, ... }: let lixPackageSet = pkgs.lixPackageSets.latest; in { nixpkgs.config = import ../config.nix; nix = { enable = true; # needed for "standalone" home-manager, conflicts with module package = lib.mkDefault lixPackageSet.lix; }; programs.direnv.nix-direnv.package = lixPackageSet.nix-direnv; # workaround https://github.com/nix-community/home-manager/issues/8786 home.activation.installPackages = lib.mkForce ( lib.hm.dag.entryAfter [ "writeBoundary" ] '' nixProfileRemove home-manager-path if [[ -e ${config.home.profileDirectory}/manifest.json ]]; then run nix profile install ${config.home.path} else run nix-env -i ${config.home.path} fi '' ); home.packages = with pkgs; [ angrr nix-tree ]; programs.nixvim.plugins = { nix.enable = true; }; }