mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-09-10 03:51:46 +02:00
fix(security): tighten desktop remote access
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
myvars,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
@@ -34,7 +32,7 @@
|
||||
services.sunshine = {
|
||||
enable = lib.mkDefault false; # default to false, for security reasons.
|
||||
autoStart = true;
|
||||
capSysAdmin = true; # only needed for Wayland -- omit this when using with Xorg
|
||||
capSysAdmin = false;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
# pc - Only localhost may access the web ui
|
||||
@@ -45,6 +43,4 @@
|
||||
wan_encryption_mode = 2;
|
||||
};
|
||||
};
|
||||
|
||||
users.users."${myvars.username}".extraGroups = lib.mkIf config.services.sunshine.enable [ "input" ];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user