From 0cdd34496952cd7aca013501517e19d9cae86a14 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 1 Dec 2022 17:30:39 -0500 Subject: [PATCH] make hermetic --- flake.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index b839ebf..05de5fc 100644 --- a/flake.nix +++ b/flake.nix @@ -33,7 +33,7 @@ inputs.flake-parts.lib.mkFlake { inherit (inputs) self; } { systems = [ "x86_64-linux" "aarch64-darwin" ]; imports = [ ]; - perSystem = { self', inputs', config, pkgs, system, ... }: { + perSystem = { self', inputs', config, pkgs, lib, system, ... }: { devShells.default = pkgs.mkShell { buildInputs = with pkgs; [ nixpkgs-fmt @@ -64,7 +64,7 @@ '' else bashCmdApp "linux" '' - nixos-rebuild --use-remote-sudo switch -j auto + ${lib.getExe pkgs.nixos-rebuild} --use-remote-sudo switch -j auto ''; }; flake =