diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..26ef376 --- /dev/null +++ b/.envrc @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# the shebang is ignored, but nice for editors + +# shellcheck shell=bash +if type -P lorri &>/dev/null; then + eval "$(lorri direnv --flake .)" +else + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' + use flake +fi diff --git a/.gitignore b/.gitignore index 09cdde3..7aa6814 100644 --- a/.gitignore +++ b/.gitignore @@ -6,7 +6,6 @@ tmp/ .proxmox /.pre-commit-config.yaml nixos.qcow2 -.envrc .direnv result* .nixos-test-history diff --git a/panel/.envrc b/panel/.envrc new file mode 100644 index 0000000..c6aca5a --- /dev/null +++ b/panel/.envrc @@ -0,0 +1,10 @@ +#!/usr/bin/env bash +# the shebang is ignored, but nice for editors + +# shellcheck shell=bash +if type -P lorri &>/dev/null; then + eval "$(lorri direnv)" +else + echo 'while direnv evaluated .envrc, could not find the command "lorri" [https://github.com/nix-community/lorri]' + use_nix +fi