Fix local building for remote hosts

This commit is contained in:
Charlotte Van Petegem 2023-01-18 18:21:49 +01:00
parent d6bdc90cc3
commit f7afb02ad2
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 98 additions and 0 deletions

View file

@ -1,6 +1,8 @@
{ pkgs, inputs }: pkgs.devshell.mkShell {
name = "NixOS config";
packages = [
# Use nixos-rebuild from flake, since it might be patched
pkgs.nixos-rebuild
pkgs.nixpkgs-fmt
(pkgs.writeShellScriptBin "fetchpatch" "curl -L https://github.com/NixOS/nixpkgs/pull/$1.patch -o patches/$1.patch")
inputs.agenix.defaultPackage.x86_64-linux