diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..1d953f4 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use nix diff --git a/common-attrs.nix b/common-attrs.nix new file mode 100644 index 0000000..baf6681 --- /dev/null +++ b/common-attrs.nix @@ -0,0 +1,7 @@ +pkgs: +{ + buildInputs = with pkgs; [ + restic + ruby + ]; +} diff --git a/shell.nix b/shell.nix new file mode 100644 index 0000000..7f90db2 --- /dev/null +++ b/shell.nix @@ -0,0 +1,7 @@ +{ pkgs ? import {} }: +let + commonAttrs = import ./common-attrs.nix pkgs; +in +pkgs.mkShell { + inherit (commonAttrs) buildInputs; +}