chore: update nysh and relax service security
This commit is contained in:
parent
fe5c301177
commit
9b1e5e4b61
2 changed files with 10 additions and 9 deletions
8
flake.lock
generated
8
flake.lock
generated
|
@ -287,11 +287,11 @@
|
|||
"quickshell": "quickshell"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1731862325,
|
||||
"narHash": "sha256-K6F/3dMLzPucS0E3wCgqmIGu5WbrYRhVeTKRyFsh9Cc=",
|
||||
"lastModified": 1732098440,
|
||||
"narHash": "sha256-RKnOKsIc8v+lZE1Oq3ZJtAj90o/VjdjylwTD8xVSw7o=",
|
||||
"ref": "refs/heads/main",
|
||||
"rev": "a57cc7c1d2f6dc5dd2642b6d9d9dab2ca8f43da2",
|
||||
"revCount": 81,
|
||||
"rev": "a516c42fa522d79814e94a53bdcc85615f7daf2a",
|
||||
"revCount": 85,
|
||||
"type": "git",
|
||||
"url": "https://git.ccnlc.eu/nydragon/nysh.git"
|
||||
},
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
lib,
|
||||
inputs',
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
|
@ -20,6 +21,11 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
systemd.user.services.nysh = {
|
||||
path = [
|
||||
pkgs.curl
|
||||
pkgs.brightnessctl
|
||||
pkgs.networkmanager
|
||||
];
|
||||
wantedBy = [
|
||||
"multi-user.target"
|
||||
"graphical-session.target"
|
||||
|
@ -33,11 +39,6 @@ in
|
|||
Restart = "on-failure";
|
||||
|
||||
NoNewPrivileges = true;
|
||||
PrivateMounts = true;
|
||||
ProtectHostname = true;
|
||||
ProtectKernelTunables = true;
|
||||
PrivateTmp = true;
|
||||
IPAddressDeny = "any";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue