2025-01-05 01:20:58 +01:00
|
|
|
{ pkgs, config, systemd,user ... }:
|
2024-04-28 11:35:35 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
# enabling firejail for sandboxing
|
|
|
|
programs.firejail = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
# enabling doas
|
|
|
|
security.doas.enable = true;
|
|
|
|
security.sudo.enable = false;
|
|
|
|
security.doas.extraRules = [{
|
2025-01-05 01:20:58 +01:00
|
|
|
users = [ ${user} ];
|
2024-04-28 11:35:35 +02:00
|
|
|
keepEnv = true;
|
|
|
|
persist = true;
|
|
|
|
}];
|
|
|
|
|
|
|
|
# setting up a polkit
|
|
|
|
security.polkit.enable = true;
|
|
|
|
}
|