summaryrefslogtreecommitdiff
path: root/nix/lenovo-base
diff options
context:
space:
mode:
authorBrad Clawsie <brad@b7j0c.org>2026-12-05 13:10:35 -0600
committerBrad Clawsie <brad@b7j0c.org>2026-12-05 13:10:35 -0600
commit727d70b1beb1472d74fdad44027e1b16c37f4e4b (patch)
tree9572e4a2072de565c21664fad910f5206d4a603d /nix/lenovo-base
parent6684177e36e5d9dff0a436e9878a265428505196 (diff)
etc-hostsHEADmaster
Diffstat (limited to 'nix/lenovo-base')
-rw-r--r--nix/lenovo-base/base.nix5
-rw-r--r--nix/lenovo-base/local.example.nix3
-rw-r--r--nix/lenovo-base/local.nix7
3 files changed, 13 insertions, 2 deletions
diff --git a/nix/lenovo-base/base.nix b/nix/lenovo-base/base.nix
index 1eb6a48..69173c9 100644
--- a/nix/lenovo-base/base.nix
+++ b/nix/lenovo-base/base.nix
@@ -1,6 +1,10 @@
{ pkgs, ... }:
+let
+ local = import ./local.nix;
+in
+
{
# Boot
boot.loader = {
@@ -13,6 +17,7 @@
# Networking
networking.networkmanager.enable = true;
networking.firewall.enable = true;
+ networking.hosts = local.hosts or {};
# Locale
time.timeZone = "America/Chicago";
diff --git a/nix/lenovo-base/local.example.nix b/nix/lenovo-base/local.example.nix
index 898d434..238d642 100644
--- a/nix/lenovo-base/local.example.nix
+++ b/nix/lenovo-base/local.example.nix
@@ -1,4 +1,5 @@
-
{
nextdnsProfile = "YOUR_CONFIG_ID";
+
+ hosts = {};
}
diff --git a/nix/lenovo-base/local.nix b/nix/lenovo-base/local.nix
index 898d434..9ac5bdb 100644
--- a/nix/lenovo-base/local.nix
+++ b/nix/lenovo-base/local.nix
@@ -1,4 +1,9 @@
-
{
nextdnsProfile = "YOUR_CONFIG_ID";
+
+ # > virsh domifaddr dev to get ip
+ # hosts = {
+ # "192.168.122.179" = [ "dev" ];
+ # };
+ hosts = {};
}