From 4bda7bcd1eb2410ff7466fd4da2b5345ece6763f Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Fri, 22 Feb 2019 20:34:18 +0100 Subject: Declare tasks as attribute option This way it is easy to support e.g. host specific tasks --- custom.nix | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'custom.nix') diff --git a/custom.nix b/custom.nix index 266a37e..acc8f0e 100644 --- a/custom.nix +++ b/custom.nix @@ -1,8 +1,14 @@ { pkgs, ... }: { - options.custom.hidpi = pkgs.lib.mkOption { - type = pkgs.lib.types.bool; - description = "Configure UI for high DPI displays"; + options.custom = { + hidpi = pkgs.lib.mkOption { + type = pkgs.lib.types.bool; + description = "Configure UI for high DPI displays"; + }; + + tasks = pkgs.lib.mkOption { + type = pkgs.lib.types.attrs; + }; }; } -- cgit v1.2.3