aboutsummaryrefslogtreecommitdiff
path: root/nixos/custom-hosts.nix
diff options
context:
space:
mode:
authorZhongheng Liu <z.liu@outlook.com.gr>2024-12-17 00:53:10 +0200
committerZhongheng Liu <z.liu@outlook.com.gr>2024-12-17 00:53:10 +0200
commit64e476798d7bb4a93813a3f2ceed77668275fff0 (patch)
tree42c912f4e6dca3f2bebb9e27435f391d8ececce3 /nixos/custom-hosts.nix
parent77f1155518d95c83a644eef379423c53eeb2e9c7 (diff)
downloadnixos-configuration-64e476798d7bb4a93813a3f2ceed77668275fff0.tar.gz
nixos-configuration-64e476798d7bb4a93813a3f2ceed77668275fff0.tar.bz2
nixos-configuration-64e476798d7bb4a93813a3f2ceed77668275fff0.zip
feat: experimenting with custom local hosts
Diffstat (limited to 'nixos/custom-hosts.nix')
-rw-r--r--nixos/custom-hosts.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/nixos/custom-hosts.nix b/nixos/custom-hosts.nix
new file mode 100644
index 0000000..942bc4f
--- /dev/null
+++ b/nixos/custom-hosts.nix
@@ -0,0 +1,13 @@
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}: {
+ networking.extraHosts = ''
+ # home IP mapping
+
+ 192.168.2.1 router.home
+ 192.168.2.2 server.home
+ '';
+}