diff options
| -rw-r--r-- | remote-dev/flake.nix | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/remote-dev/flake.nix b/remote-dev/flake.nix index 6622a72..69ddafd 100644 --- a/remote-dev/flake.nix +++ b/remote-dev/flake.nix @@ -12,7 +12,17 @@ outputs = { self, nixpkgs, home-manager, ... }: let system = "x86_64-linux"; - pkgs = import nixpkgs { inherit system; config.allowUnfree = false; }; + pkgs = import nixpkgs { + inherit system; + # Whitelist specific unfree packages (claude-code, github-copilot-cli) + # instead of globally setting allowUnfree, so a typo elsewhere can't + # silently pull in additional unfree deps. + config.allowUnfreePredicate = pkg: + builtins.elem (nixpkgs.lib.getName pkg) [ + "claude-code" + "github-copilot-cli" + ]; + }; in { homeConfigurations.vm = home-manager.lib.homeManagerConfiguration { |
