Reenable security again.
This commit is contained in:
parent
5d1d6f31d7
commit
c2a5613e4f
1 changed files with 39 additions and 39 deletions
78
module.nix
78
module.nix
|
@ -61,49 +61,49 @@ in
|
||||||
User = cfg.user;
|
User = cfg.user;
|
||||||
Group = cfg.group;
|
Group = cfg.group;
|
||||||
|
|
||||||
# PrivateMounts = true;
|
PrivateMounts = true;
|
||||||
# PrivateDevices = true;
|
PrivateDevices = true;
|
||||||
# PrivateTmp = true;
|
PrivateTmp = true;
|
||||||
# PrivateIPC = true;
|
PrivateIPC = true;
|
||||||
# PrivateUsers = true;
|
PrivateUsers = true;
|
||||||
|
|
||||||
# SystemCallFilters = [
|
SystemCallFilters = [
|
||||||
# "@aio"
|
"@aio"
|
||||||
# "@basic-io"
|
"@basic-io"
|
||||||
# "@file-system"
|
"@file-system"
|
||||||
# "@io-event"
|
"@io-event"
|
||||||
# "@process"
|
"@process"
|
||||||
# "@network-io"
|
"@network-io"
|
||||||
# "@timer"
|
"@timer"
|
||||||
# "@signal"
|
"@signal"
|
||||||
# "@alarm"
|
"@alarm"
|
||||||
# ];
|
];
|
||||||
# SystemCallErrorNumber = "EPERM";
|
SystemCallErrorNumber = "EPERM";
|
||||||
|
|
||||||
# ProtectSystem = "full";
|
ProtectSystem = "full";
|
||||||
# ProtectHome = true;
|
ProtectHome = true;
|
||||||
# ProtectHostname = true;
|
ProtectHostname = true;
|
||||||
# ProtectClock = true;
|
ProtectClock = true;
|
||||||
# ProtectKernelTunables = true;
|
ProtectKernelTunables = true;
|
||||||
# ProtectKernelModules = true;
|
ProtectKernelModules = true;
|
||||||
# ProtectKernelLogs = true;
|
ProtectKernelLogs = true;
|
||||||
# ProtectControlGroups = true;
|
ProtectControlGroups = true;
|
||||||
# RestrictNamespaces = "";
|
RestrictNamespaces = "";
|
||||||
|
|
||||||
# NoNewPrivileges = true;
|
NoNewPrivileges = true;
|
||||||
# ReadOnlyPaths = lib.mkMerge [
|
ReadOnlyPaths = lib.mkMerge [
|
||||||
# ([
|
([
|
||||||
# "/nix/var"
|
"/nix/var"
|
||||||
# "/nix/store"
|
"/nix/store"
|
||||||
# ])
|
])
|
||||||
|
|
||||||
# (lib.mkIf (cfg.privateKeyFile != null) [
|
(lib.mkIf (cfg.privateKeyFile != null) [
|
||||||
# (toString cfg.privateKeyFile)
|
(toString cfg.privateKeyFile)
|
||||||
# ])
|
])
|
||||||
# ];
|
];
|
||||||
# ExecPaths = [
|
ExecPaths = [
|
||||||
# "/nix/store"
|
"/nix/store"
|
||||||
# ];
|
];
|
||||||
Environment = lib.mkIf (cfg.privateKeyFile != null) [
|
Environment = lib.mkIf (cfg.privateKeyFile != null) [
|
||||||
"NIX_SECRET_KEY_FILE=${toString cfg.privateKeyFile}"
|
"NIX_SECRET_KEY_FILE=${toString cfg.privateKeyFile}"
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in a new issue