Add security setup.
This commit is contained in:
@@ -17,6 +17,7 @@
|
|||||||
./services/sound.nix
|
./services/sound.nix
|
||||||
./system/bluetooth.nix
|
./system/bluetooth.nix
|
||||||
./system/locale.nix
|
./system/locale.nix
|
||||||
|
./system/security.nix
|
||||||
./system/time.nix
|
./system/time.nix
|
||||||
./system/users.nix
|
./system/users.nix
|
||||||
];
|
];
|
||||||
|
|||||||
29
nodes/hosts/common/system/security.nix
Normal file
29
nodes/hosts/common/system/security.nix
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
{ pkgs, lib, ... }: {
|
||||||
|
security = {
|
||||||
|
rtkit.enable = true;
|
||||||
|
pam.services.hyprlock = {};
|
||||||
|
|
||||||
|
polkit = {
|
||||||
|
enable = true;
|
||||||
|
adminIdentities = [
|
||||||
|
"unix-group:wheel"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
sudo = {
|
||||||
|
enable = lib.mkForce false;
|
||||||
|
};
|
||||||
|
|
||||||
|
sudo-rs = {
|
||||||
|
enable = true;
|
||||||
|
wheelNeedsPassword = true;
|
||||||
|
execWheelOnly = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.vulnix
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user