From 69ec80b1fe741e442d1fbb17862b32fe416e5590 Mon Sep 17 00:00:00 2001 From: Christopher James Hayward Date: Sat, 19 Jun 2021 15:27:05 -0400 Subject: [PATCH] Timezones --- hosts/acernitro/configuration.nix | 3 +-- hosts/homecloud/configuration.nix | 36 ++++++++++++++++++++++++++++++- hosts/raspberry/configuration.nix | 4 +++- 3 files changed, 39 insertions(+), 4 deletions(-) diff --git a/hosts/acernitro/configuration.nix b/hosts/acernitro/configuration.nix index ce86752..7b12959 100644 --- a/hosts/acernitro/configuration.nix +++ b/hosts/acernitro/configuration.nix @@ -20,7 +20,7 @@ "192.168.3.163" = [ "acernitro_" ]; "192.168.3.182" = [ "raspberry" ]; "192.168.3.123" = [ "raspberry_" ]; - # "" = [ "homecloud" ]; + "192.168.3.183" = [ "homecloud" ]; # "" = [ "homecloud_" ]; # "" = [ "zero-one" ]; # "" = [ "zero-two" ]; @@ -28,7 +28,6 @@ }; services.xserver.dpi = 96; - services.openssh.enable = true; services.printing.enable = true; programs.mtr.enable = true; diff --git a/hosts/homecloud/configuration.nix b/hosts/homecloud/configuration.nix index 0c6f771..0d001b2 100644 --- a/hosts/homecloud/configuration.nix +++ b/hosts/homecloud/configuration.nix @@ -1,3 +1,37 @@ # This file is controlled by /etc/dotfiles/README.org -{ # TODO +{ config, pkgs, ... }: + +{ + time.timeZone = "America/Toronto"; + + networking.hostName = "homecloud"; + networking.firewall.enable = false; + networking.networkmanager.enable = true; + networking.interfaces.eth0.useDHCP = true; + networking.interfaces.wlan0.useDHCP = true; + + networking.wireless.networks.MyWiFi_5C1870.pskRaw = + "409b3c85fef1c5737f284d2f82f20dc6023e41804e862d4fa26265ef8193b326"; + networking.hosts = { + "192.168.3.105" = [ "gamingpc" ]; + # "" = [ "acernitro" ]; + "192.168.3.163" = [ "acernitro_" ]; + "192.168.3.182" = [ "raspberry" ]; + "192.168.3.123" = [ "raspberry_" ]; + "192.168.3.183" = [ "homecloud" ]; + # "" = [ "homecloud_" ]; + # "" = [ "zero-one" ]; + # "" = [ "zero-two" ]; + # "" = [ "android" ]; + }; + + environment.systemPackages = [ + pkgs.libraspberrypi + pkgs.raspberrypi-eeprom + ]; + + users.users.chris = { + isNormalUser = true; + extraGroups = [ "wheel" "networkmanager" ]; + }; } diff --git a/hosts/raspberry/configuration.nix b/hosts/raspberry/configuration.nix index e4f7edd..a09ba88 100644 --- a/hosts/raspberry/configuration.nix +++ b/hosts/raspberry/configuration.nix @@ -2,6 +2,8 @@ { config, pkgs, ... }: { + time.timeZone = "America/Toronto"; + networking.hostName = "raspberry"; networking.firewall.enable = false; networking.networkmanager.enable = true; @@ -14,7 +16,7 @@ "192.168.3.163" = [ "acernitro_" ]; "192.168.3.182" = [ "raspberry" ]; "192.168.3.123" = [ "raspberry_" ]; - # "" = [ "homecloud" ]; + "192.168.3.183" = [ "homecloud" ]; # "" = [ "homecloud_" ]; # "" = [ "zero-one" ]; # "" = [ "zero-two" ];