From 799b2cd63e39e8a5c264739460f1c96fa05010b1 Mon Sep 17 00:00:00 2001 From: Baitinq Date: Sun, 5 Feb 2023 02:48:10 +0100 Subject: Hosts: Use /etc/hosts from flake input --- flake.lock | Bin 5848 -> 6306 bytes flake.nix | 5 +++++ hosts/configuration.nix | 5 ++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/flake.lock b/flake.lock index 3d2b026..4d3ecc3 100644 Binary files a/flake.lock and b/flake.lock differ diff --git a/flake.nix b/flake.nix index 30b3784..0599000 100644 --- a/flake.nix +++ b/flake.nix @@ -22,6 +22,11 @@ nix-index.url = "github:Mic92/nix-index-database"; + hosts = { + url = "github:StevenBlack/hosts"; + flake = false; + }; + wallpapers = { url = "github:Baitinq/Wallpapers"; flake = false; diff --git a/hosts/configuration.nix b/hosts/configuration.nix index ec000b0..7f312ab 100644 --- a/hosts/configuration.nix +++ b/hosts/configuration.nix @@ -33,13 +33,12 @@ tmpOnTmpfs = true; }; - # Set your time zone. time.timeZone = timezone; networking = { - hostName = hostname; # Define your hostname. + hostName = hostname; enableIPv6 = true; - extraHosts = builtins.readFile "${dotfiles}/hosts"; + extraHosts = builtins.readFile "${inputs.hosts}/hosts"; dhcpcd.enable = true; resolvconf.enable = true; nameservers = [ "127.0.0.1" ]; -- cgit 1.4.1