Add extra package repos as nixpkgs overrides instead of independent references

This commit is contained in:
Katherina Walshe-Grey 2024-06-19 19:14:59 +01:00
parent 7899127c05
commit 3e9901bd2a
3 changed files with 36 additions and 36 deletions

View file

@ -6,7 +6,18 @@ in {
deployment.replaceUnknownProfiles = false;
networking.hostName = name;
nixpkgs.config.allowUnfree = true;
nixpkgs.config = {
allowUnfree = true;
packageOverrides = pkgs: {
agenix = (import sources.agenix { inherit pkgs; }).agenix;
vscode-extensions = (import sources.nix-vscode-extensions).extensions.x86_64-linux; # TODO: This should check the host architecture
};
};
home-manager = {
useUserPackages = true;
useGlobalPkgs = true;
};
imports = [
(import "${sources.home-manager}/nixos")