From 8589344a035c0e23245bbf739cc6016129e5338f Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Fri, 27 Jan 2023 16:10:13 -0700 Subject: [PATCH] .github: Verify trusted-users is set in nix.conf --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 763bf1e..7adf9dd 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,10 @@ jobs: fortune nix store gc 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: name: Run x86_64 Darwin @@ -132,4 +136,8 @@ jobs: nix profile install nixpkgs#fortune fortune nix store gc - nix run nixpkgs#fortune \ No newline at end of file + 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