Skip to content

Commit

Permalink
fix: harden nix by only allowing wheel users to configure daemon (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
NoRePercussions authored Dec 16, 2024
1 parent 964bec2 commit b2adcad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion hosts/common/nixos/cis-hardening.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

boot.kernelPackages = pkgs.linuxPackages_hardened;

nix.settings.allowed-users = [ "@users" ];
nix.settings.allowed-users = [ "@wheel" ];

environment.memoryAllocator.provider = "scudo";
environment.variables.SCUDO_OPTIONS = "ZeroContents=1";
Expand Down
2 changes: 1 addition & 1 deletion hosts/common/users/tuckershea/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ in {
// lib.optionalAttrs stdenv.isLinux {
group = "tuckershea";
isNormalUser = true;
extraGroups = ["wheel"];
extraGroups = [ "wheel" ];
};

users.groups.tuckershea = {};
Expand Down

0 comments on commit b2adcad

Please sign in to comment.