From 9238ad58b017701e67138a83ac0404f92f93d177 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Benjamin=20B=C3=A4dorf?= Date: Thu, 14 Sep 2023 11:01:28 +0200 Subject: [PATCH] chore: rename latest to nixpkgs --- flake.nix | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) 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