diff options
Diffstat (limited to 'application/module.nix')
| -rw-r--r-- | application/module.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/application/module.nix b/application/module.nix index 5f07245..7ec368d 100644 --- a/application/module.nix +++ b/application/module.nix @@ -2,6 +2,7 @@ lib, config, pkgs, + self, ... }: @@ -10,9 +11,10 @@ let mkIf mkOption mkEnableOption - mkPackageOption types ; + inherit (pkgs) stdenv; + inherit (stdenv.hostPlatform) system; cfg = config.services.specimen; in @@ -20,7 +22,11 @@ in options.services.specimen = { enable = mkEnableOption "specimen application"; - package = mkPackageOption pkgs "specimen" { }; + package = mkOption { + type = types.package; + description = "specimen package to use."; + default = self.packages.${system}.default; + }; port = mkOption { type = types.port; |
