mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-01 12:34:36 +05:30
Added update to dir permissions
This commit is contained in:
parent
16b832d5f0
commit
3eb87c59f2
14
harden.sh
14
harden.sh
|
@ -19,11 +19,13 @@ else
|
|||
dotfilesDir=$(pwd);
|
||||
fi
|
||||
pushd $dotfilesDir &> /dev/null;
|
||||
chown -R root:root system;
|
||||
chown -R root:root patches;
|
||||
chown root:root flake.lock;
|
||||
chown root:root flake.nix
|
||||
chown root:root profiles/*/configuration.nix;
|
||||
chown 0:0 .;
|
||||
chown 0:0 profiles/*;
|
||||
chown -R 0:0 system;
|
||||
chown -R 0:0 patches;
|
||||
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 root:root harden.sh;
|
||||
popd &> /dev/null;
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
programs.git.userEmail = userSettings.email;
|
||||
programs.git.extraConfig = {
|
||||
init.defaultBranch = "main";
|
||||
safe.directory = "/home/" + userSettings.username + "/.dotfiles";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue