diff --git a/hosts/2maccabees/default.nix b/hosts/2maccabees/default.nix index 3a44a36..4f5c077 100644 --- a/hosts/2maccabees/default.nix +++ b/hosts/2maccabees/default.nix @@ -7,7 +7,6 @@ ./home-assistant.nix ./networking.nix ./vhosts.nix - ../../profiles/home.nix ]; networking.hostName = "2maccabees"; greg.rpi4.enable = true; diff --git a/hosts/linode/default.nix b/hosts/linode/default.nix index f322017..0d41a68 100644 --- a/hosts/linode/default.nix +++ b/hosts/linode/default.nix @@ -9,6 +9,7 @@ ./postgres.nix ./synapse.nix ]; + greg.home = false; networking.hostName = "linode"; networking.domain = "thehellings.com"; } diff --git a/modules/default.nix b/modules/default.nix index b002205..f690b42 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -2,6 +2,7 @@ { imports = [ + ./home.nix ./proxy.nix ./rpi4.nix ]; diff --git a/modules/home.nix b/modules/home.nix new file mode 100644 index 0000000..8040dce --- /dev/null +++ b/modules/home.nix @@ -0,0 +1,18 @@ +{ config, lib, ... }: + +let + cfg = config.greg.home; + +in with lib; +{ + options.greg.home = mkOption { + type = types.bool; + default = true; + description = "Sets the device up to be part of my home network"; + }; + + config = mkIf cfg { + time.timeZone = "America/Chicago"; + networking.domain = "thehellings.lan"; + }; +} diff --git a/profiles/home.nix b/profiles/home.nix deleted file mode 100644 index 86bf6d3..0000000 --- a/profiles/home.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ config, ... }: - -{ - time.timeZone = "America/Chicago"; - networking.domain = "thehellings.lan"; -}