Added update to dir permissions
This commit is contained in:
14
harden.sh
14
harden.sh
@@ -19,11 +19,13 @@ else
|
|||||||
dotfilesDir=$(pwd);
|
dotfilesDir=$(pwd);
|
||||||
fi
|
fi
|
||||||
pushd $dotfilesDir &> /dev/null;
|
pushd $dotfilesDir &> /dev/null;
|
||||||
chown -R root:root system;
|
chown 0:0 .;
|
||||||
chown -R root:root patches;
|
chown 0:0 profiles/*;
|
||||||
chown root:root flake.lock;
|
chown -R 0:0 system;
|
||||||
chown root:root flake.nix
|
chown -R 0:0 patches;
|
||||||
chown root:root profiles/*/configuration.nix;
|
chown 0:0 flake.lock;
|
||||||
|
chown 0:0 flake.nix
|
||||||
|
chown 0:0 profiles/*/configuration.nix;
|
||||||
|
chown 0:0 harden.sh;
|
||||||
chown 1000:users **/README.org;
|
chown 1000:users **/README.org;
|
||||||
chown root:root harden.sh;
|
|
||||||
popd &> /dev/null;
|
popd &> /dev/null;
|
||||||
|
@@ -7,5 +7,6 @@
|
|||||||
programs.git.userEmail = userSettings.email;
|
programs.git.userEmail = userSettings.email;
|
||||||
programs.git.extraConfig = {
|
programs.git.extraConfig = {
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
|
safe.directory = "/home/" + userSettings.username + "/.dotfiles";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user