Default boxes to be at home network

This commit is contained in:
Greg Hellings
2022-04-25 22:25:04 -05:00
parent a992c7c560
commit 5f1e146847
5 changed files with 20 additions and 7 deletions
+1
View File
@@ -2,6 +2,7 @@
{
imports = [
./home.nix
./proxy.nix
./rpi4.nix
];
+18
View File
@@ -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";
};
}