diff --git a/info.nix b/info.nix index c3ec4a0..b6f8385 100644 --- a/info.nix +++ b/info.nix @@ -1,4 +1,7 @@ { hostname = "nixos"; username = "biscuit"; + timezone = "America/Chicago"; + + vpn_enable = true; } diff --git a/modules/system.nix b/modules/system.nix index dcea852..3fc86b4 100644 --- a/modules/system.nix +++ b/modules/system.nix @@ -1,9 +1,9 @@ -{ ... }: { +{vpn_enable, ...}: { imports = [ ../system/bootloader.nix ../system/firewall.nix ../system/locale.nix - ../system/networking.nix + ../system/network.nix ../system/term.nix ../system/development.nix # ../system/proxy.nix @@ -13,5 +13,6 @@ # ../system/touchpad.nix ../system/users.nix ../system/tools.nix + (if vpn_enable then ../system/vpn.nix else null) ]; } diff --git a/system/networking.nix b/system/network.nix similarity index 100% rename from system/networking.nix rename to system/network.nix diff --git a/system/timezone.nix b/system/timezone.nix index a6d89ef..b2aa8aa 100644 --- a/system/timezone.nix +++ b/system/timezone.nix @@ -1,3 +1,3 @@ -{ ... }: { - time.timeZone = "America/Chicago"; +{timezone, ... }: { + time.timeZone = "${timezone}"; }