updated direnv before script

This commit is contained in:
Sebastian Wendel 2022-07-12 14:16:19 +02:00
parent 906e4344c0
commit 5fd13baa47
No known key found for this signature in database
GPG key ID: 1422B7DF78144640
2 changed files with 10 additions and 2 deletions

2
.envrc
View file

@ -1,3 +1,5 @@
watch_file *.nix **/*.nix
use flake
eval "$shellHook"

View file

@ -1,9 +1,15 @@
---
default:
image: nixos/nix:latest
image: nixos/nix
retry: 2
variables:
NIXOS_VERSION: "22.05"
# NIXPKGS_ALLOW_UNFREE: "1"
# NIXPKGS_ALLOW_INSECURE: "1"
before_script:
- nix-shell -p direnv
- nix-channel --add https://nixos.org/channels/nixos-${NIXOS_VERSION} nixos
- nix-channel --update
- nix-env -iA nixos.direnv
- direnv allow
stages: