commit e49f8055f3e5259cccf72d8fc1953fff92e91da6
parent 7261ef8b2183e1285650046bedd606a187d1846e
Author: Daniel Barlow <dan@telent.net>
Date: Tue, 4 Nov 2025 21:53:02 +0000
add etc/hosts to base module
this is hardcoded to localhost only. it would be better to have
a config option to allow defining static hosts
Diffstat:
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/modules/base.nix b/modules/base.nix
@@ -211,9 +211,14 @@ in
export PATH
''
);
+ hosts = symlink (
+ pkgs.writeText "hosts" ''
+ 127.0.0.1 localhost
+ ''
+ );
in
dir {
- inherit profile;
+ inherit hosts profile;
ashrc = profile;
};