diff --git a/machines/common/darwin/default.nix b/machines/common/darwin/default.nix index 9471184..b616dc7 100644 --- a/machines/common/darwin/default.nix +++ b/machines/common/darwin/default.nix @@ -1,4 +1,5 @@ {lib, ...}: { + imports = [./options.nix]; # manipulate the global /etc/zshenv for PATH, etc. programs.zsh.enable = true; diff --git a/machines/common/darwin/options.nix b/machines/common/darwin/options.nix new file mode 100644 index 0000000..7b08a6a --- /dev/null +++ b/machines/common/darwin/options.nix @@ -0,0 +1,8 @@ +{lib, ...}: let + inherit (lib) mkOption types; +in { + options.location = { + latitude = mkOption {type = types.nullOr types.float;}; + longitude = mkOption {type = types.nullOr types.float;}; + }; +} diff --git a/machines/lib.nix b/machines/lib.nix index 3bc3112..66a7ec3 100644 --- a/machines/lib.nix +++ b/machines/lib.nix @@ -74,14 +74,6 @@ ./${host} home-manager.${module}.home-manager ] - ++ pkgs.lib.optionals pkgs.stdenv.isDarwin [ - { - options.location = { - latitude = mkOption {type = types.nullOr types.float;}; - longitude = mkOption {type = types.nullOr types.float;}; - }; - } - ] ++ [(hmCommonConfig {inherit username;})] ++ extraModules; specialArgs = {inherit inputs;};