summaryrefslogtreecommitdiff
path: root/nix/lenovo-base
diff options
context:
space:
mode:
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 = {};
}