ferrosonic

This commit is contained in:
root 2026-07-05 20:00:36 -03:00
parent 749bfdf50d
commit 5f70e8be94
No known key found for this signature in database
7 changed files with 293 additions and 84 deletions

View file

@ -15,7 +15,6 @@ let
"$@"
'';
nsWrapper = pkgs.writeShellScriptBin "ns" ''
exec /run/wrappers/bin/doas ${nsExec}/bin/ns-raw "$@"
'';
in
@ -24,17 +23,16 @@ in
./hardened.nix
./vfio.nix
./standard.nix
# ./apparmor.nix
];
custom.kernel.hardened.enable = true;
custom.kernel.vfio.enable = false;
custom.kernel.standard.enable = true;
# security.apparmor.enable = false;
security.apparmor.enable = false;
specialisation.unhardened.configuration = {
custom.kernel.hardened.enable = lib.mkForce false;
# security.apparmor.enable = lib.mkForce false;
security.apparmor.enable = lib.mkForce false;
};
specialisation.vfio.configuration = {
@ -68,23 +66,6 @@ in
noPass = true;
keepEnv = false;
}
{
users = [ "user" ];
runAs = "agent";
noPass = true;
keepEnv = true;
}
{
users = [
"user"
"agent"
"work"
];
runAs = "root";
noPass = true;
keepEnv = true;
cmd = "${nsExec}/bin/ns-raw";
}
];
};