diff --git a/nixos/modules/services/security/endlessh-go.nix b/nixos/modules/services/security/endlessh-go.nix index b8b51acc81d0e..5c69d412a7d3c 100644 --- a/nixos/modules/services/security/endlessh-go.nix +++ b/nixos/modules/services/security/endlessh-go.nix @@ -110,7 +110,13 @@ in ); DynamicUser = true; RootDirectory = rootDirectory; - BindReadOnlyPaths = [ builtins.storeDir ]; + BindReadOnlyPaths = [ + builtins.storeDir + "-/etc/hosts" + "-/etc/localtime" + "-/etc/nsswitch.conf" + "-/etc/resolv.conf" + ]; InaccessiblePaths = [ "-+${rootDirectory}" ]; RuntimeDirectory = baseNameOf rootDirectory; RuntimeDirectoryMode = "700";