From c455b886a52883bc8de5b5c2dbfd1bb35c60fd7a Mon Sep 17 00:00:00 2001 From: "Jeffrey C. Ollie" Date: Sat, 14 Feb 2026 22:46:17 -0600 Subject: [PATCH] more permission fixes --- flake.nix | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/flake.nix b/flake.nix index af152e2..433042a 100644 --- a/flake.nix +++ b/flake.nix @@ -122,9 +122,7 @@ pkgs.podman pkgs.reuse pkgs.regctl - pkgs.shadow.su pkgs.stdenv.cc.cc.lib - pkgs.sudo pkgs.tailscale pkgs.which pkgs.xz @@ -316,12 +314,7 @@ gitConfig = '' [safe] - directory = * - ''; - - sudoers = '' - root ALL=(ALL:ALL) NOPASSWD:ALL SETENV:ALL - %wheel ALL=(ALL:ALL) NOPASSWD:ALL SETENV:ALL + directory = /__w/nixos-runner/nixos-runner ''; baseSystem = @@ -385,7 +378,6 @@ passwdContents shadowContents gitConfig - sudoers ; passAsFile = [ "containerPolicy" @@ -397,7 +389,6 @@ "passwdContents" "shadowContents" "gitConfig" - "sudoers" ]; allowSubstitutes = false; preferLocalBuild = true; @@ -417,13 +408,6 @@ cat $shadowContentsPath > $out/etc/shadow echo "" >> $out/etc/shadow - cat $sudoersPath > $out/etc/sudoers - echo "" >> $out/etc/sudoers - - mkdir -p $out/etc/pam.d - cat $pamSuPath > $out/etc/pam.d/su - echo "" >> $out/etc/pam.d/su - mkdir -p $out/etc/nix cat $nixConfContentsPath > $out/etc/nix/nix.conf echo "" >> $out/etc/nix/nix.conf -- 2.51.2