diff --git a/flake.nix b/flake.nix index a742e66d..e92bc851 100644 --- a/flake.nix +++ b/flake.nix @@ -6,7 +6,7 @@ inputs = { # Track channels with commits tested and built by hydra nixos.url = "github:nixos/nixpkgs/nixos-23.05"; - latest.url = "github:nixos/nixpkgs/nixos-unstable"; + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; flake-compat.url = "github:edolstra/flake-compat"; flake-compat.flake = false; @@ -55,7 +55,16 @@ inputs.nixos-flake.flakeModule ]; - perSystem = { config, ... }: { }; + perSystem = { system, config, ... }: { + # Code to consume overlays, see https://flake.parts/overlays#consuming-an-overlay + _module.args.pkgs = import inputs.nixos { + inherit system; + overlays = [ + agenix.overlays.default + (import ./pkgs/default.nix) + ]; + }; + }; flake = { # Configurations for Linux (NixOS) machines