From 0c72a6e05f5912e70a8579ed59f089f7f43353c6 Mon Sep 17 00:00:00 2001 From: tv Date: Thu, 12 Nov 2026 01:21:34 +0000 Subject: flake: pass populate to krops, describe using krops from a flake pkgs/krops takes populate as an argument, which nixpkgs doesn't provide, so evaluating any of the flake's lib attributes from pkgs/krops fails. The flake passes its own populate. The README describes using krops from a flake: writeDeploy and the other functions from lib., evalSource and mkTarget from krops' lib directory, and deploying with nix run --impure, because krops' lib evaluates , environment variables, and /etc/hostname. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix index ec13152..9f2d7ef 100644 --- a/flake.nix +++ b/flake.nix @@ -19,7 +19,7 @@ lib = forAllSystems (system: let pkgs = nixpkgs.legacyPackages.${system}; - krops = pkgs.callPackage ./pkgs/krops {}; + krops = pkgs.callPackage ./pkgs/krops { inherit populate; }; populate = pkgs.callPackage ./pkgs/populate {}; in { inherit populate; -- cgit v1.3.1