.github: Verify trusted-users is set in nix.conf

This commit is contained in:
Zhaofeng Li 2023-01-27 16:10:13 -07:00
parent b7b7f9899e
commit 8589344a03

View file

@ -67,6 +67,10 @@ jobs:
fortune fortune
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#fortune
- name: Verify the generated nix.conf
run: |
cat -n /etc/nix/nix.conf
grep -E "^trusted-users = .*$USER" /etc/nix/nix.conf
run-x86_64-darwin: run-x86_64-darwin:
name: Run x86_64 Darwin name: Run x86_64 Darwin
@ -133,3 +137,7 @@ jobs:
fortune fortune
nix store gc nix store gc
nix run nixpkgs#fortune nix run nixpkgs#fortune
- name: Verify the generated nix.conf
run: |
cat -n /etc/nix/nix.conf
grep -E "^trusted-users = .*$USER" /etc/nix/nix.conf