From 3d8357ad00e7c8ddfa4d38f91cfd96747c44417b Mon Sep 17 00:00:00 2001 From: Johannes Kirschbauer Date: Mon, 26 Aug 2024 09:12:34 +0200 Subject: [PATCH] Facter: only export the standard linux package for caching --- flake.lock | 32 ++++++++++++++++++++++++++++++++ flake.nix | 8 +++++++- 2 files changed, 39 insertions(+), 1 deletion(-) diff --git a/flake.lock b/flake.lock index 59b3f3093..1ef644d43 100644 --- a/flake.lock +++ b/flake.lock @@ -268,6 +268,38 @@ } }, "nixpkgs": { + "locked": { + "lastModified": 1723603349, + "narHash": "sha256-VMg6N7MryOuvSJ8Sj6YydarnUCkL7cvMdrMcnsJnJCE=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "daf7bb95821b789db24fc1ac21f613db0c1bf2cb", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixpkgs-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_2": { + "locked": { + "lastModified": 1723991338, + "narHash": "sha256-Grh5PF0+gootJfOJFenTTxDTYPidA3V28dqJ/WV7iis=", + "owner": "NixOS", + "repo": "nixpkgs", + "rev": "8a3354191c0d7144db9756a74755672387b702ba", + "type": "github" + }, + "original": { + "owner": "NixOS", + "ref": "nixos-unstable", + "repo": "nixpkgs", + "type": "github" + } + }, + "nixpkgs_3": { "locked": { "lastModified": 1724607561, "narHash": "sha256-7I922FoAJO9P2YRJrxQx1ufQom3wvozJNL/Ul6eEKLI=", diff --git a/flake.nix b/flake.nix index cd9d25b09..3271b9489 100644 --- a/flake.nix +++ b/flake.nix @@ -58,8 +58,14 @@ # Inherit the nixos-facter package so its build is chached in clans binary cache { perSystem = - { inputs', ... }: + # Facter doesnt have a package for darwin yet. { + inputs', + system, + lib, + ... + }: + lib.optionalAttrs (system == "x86_64-linux") { packages.nixos-facter = inputs'.nixos-facter.packages.default; }; }