From a8d6a2b8d7c42dbf49c0f1e607be8555afaee065 Mon Sep 17 00:00:00 2001 From: seth Date: Sun, 31 Mar 2024 20:01:48 -0400 Subject: [PATCH] nix: use self'.packages as a default in module this allows for the module to always work when only importing it from the flake. if you want to make sure you aren't duplicating nixpkgs inputs, the `nixpkgs` input of this flake should be overriden, or `services.refraction.package` should be set to an overlayed version of refraction (i.e., `pkgs.refraction` after setting `nixpkgs.overlays = [ inputs.refraction.overlays.default ]`) --- nix/deployment/module.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nix/deployment/module.nix b/nix/deployment/module.nix index 46155d7..ec39895 100644 --- a/nix/deployment/module.nix +++ b/nix/deployment/module.nix @@ -23,7 +23,7 @@ in { options.services.refraction = { enable = mkEnableOption "refraction"; package = mkPackageOption ( - withSystem pkgs.stdenv.hostPlatform.system ({pkgs, ...}: pkgs) + withSystem pkgs.stdenv.hostPlatform.system ({self', ...}: self'.packages) ) "refraction" {}; user = mkOption {