Skip to content

Commit

Permalink
nixos/endlessh-go: fix DNS resolution
Browse files Browse the repository at this point in the history
As suggested by toast003[1].

[1]: shizunge/endlessh-go#127 (comment)
  • Loading branch information
azahi committed Jan 8, 2025
1 parent e09d079 commit 99778e1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nixos/modules/services/security/endlessh-go.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down

0 comments on commit 99778e1

Please sign in to comment.