mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
fix(systemd): sandbox privileged hardware oneshots
Assisted-by: DeepSeek Harness (deepseek-flash)
This commit is contained in:
1 parent
e0cb3eab75
commit
a97400df69
6 files changed
+82
-3
No files matched your search
@@ -1,5 +1,6 @@
|
||||
{
|
||||
pkgs,
|
||||
mylib,
|
||||
myvars,
|
||||
...
|
||||
}:
|
||||
@@ -83,7 +84,7 @@
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
after = [ "systemd-modules-load.service" ];
|
||||
path = [ pkgs.coreutils ];
|
||||
serviceConfig = {
|
||||
serviceConfig = mylib.systemdHardening.privilegedOneshot // {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
ExecStart = pkgs.writeShellScript "amdgpu-power-cap" ''
|
||||
|
||||
Reference in new issue
Block a user