From 04ff48dbd23302ecbf630fad6ab5f01e8734c4e8 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 19 Jun 2021 11:30:19 -0400 Subject: [PATCH] Add host configs --- README.org | 7 ++++--- hosts/acernitro/configuration.nix | 10 +++++++++- hosts/nixos/configuration.nix | 10 ++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) diff --git a/README.org b/README.org index c141749..37fe3af 100644 --- a/README.org +++ b/README.org @@ -347,7 +347,6 @@ NixOS[fn:4] typically stores the current machine configuration in =/etc/nixos/co #+NAME: host-config-wifi #+BEGIN_SRC nix -# Pre-configured wireless networks. networking.wireless.networks.MyWiFi_5C1870.pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; #+END_SRC @@ -356,7 +355,6 @@ It's helpful to add the machine hostnames to the networking configuration, so I #+NAME: host-config-home #+BEGIN_SRC nix -# Pre-configured networking hosts. networking.hosts = { "192.168.3.105" = [ "gamingpc" ]; # "" = [ "acernitro" ]; @@ -417,6 +415,8 @@ This is a basic default configuration that specified the indended default config networking.firewall.enable = false; networking.interfaces.ens3.useDHCP = true; + <> + programs.mtr.enable = true; programs.fish.enable = true; programs.gnupg.agent.enable = true; @@ -535,6 +535,7 @@ This configuration is nearly identical to the default, except for a few key diff networking.interfaces.wlp0s20f3.useDHCP = true; <> + <> services.xserver.dpi = 96; services.openssh.enable = true; @@ -653,7 +654,7 @@ Deploy this configuration with ~sudo nixos-rebuild switch --flake /etc/dotfiles/ networking.interfaces.eth0.useDHCP = true; networking.interfaces.wlan0.useDHCP = true; - <> + <> environment.systemPackages = [ pkgs.libraspberrypi diff --git a/hosts/acernitro/configuration.nix b/hosts/acernitro/configuration.nix index 7404d17..22da613 100644 --- a/hosts/acernitro/configuration.nix +++ b/hosts/acernitro/configuration.nix @@ -12,9 +12,17 @@ networking.interfaces.enp6s0f1.useDHCP = true; networking.interfaces.wlp0s20f3.useDHCP = true; - # Pre-configured wireless networks. networking.wireless.networks.MyWiFi_5C1870.pskRaw = "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; + networking.hosts = { + "192.168.3.105" = [ "gamingpc" ]; + # "" = [ "acernitro" ]; + "192.168.3.182" = [ "raspberry" ]; + # "" = [ "homecloud" ]; + # "" = [ "zero-one" ]; + # "" = [ "zero-two" ]; + # "" = [ "android" ]; + }; services.xserver.dpi = 96; services.openssh.enable = true; diff --git a/hosts/nixos/configuration.nix b/hosts/nixos/configuration.nix index 4e0ad10..bdf54e3 100644 --- a/hosts/nixos/configuration.nix +++ b/hosts/nixos/configuration.nix @@ -9,6 +9,16 @@ networking.firewall.enable = false; networking.interfaces.ens3.useDHCP = true; + networking.hosts = { + "192.168.3.105" = [ "gamingpc" ]; + # "" = [ "acernitro" ]; + "192.168.3.182" = [ "raspberry" ]; + # "" = [ "homecloud" ]; + # "" = [ "zero-one" ]; + # "" = [ "zero-two" ]; + # "" = [ "android" ]; + }; + programs.mtr.enable = true; programs.fish.enable = true; programs.gnupg.agent.enable = true;