diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2021-12-08 15:37:36 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-08 15:37:36 +0000 |
commit | 23203248264fddcde56d416379783c89c5ddac9b (patch) | |
tree | 33bc9406934ed37a0a606586701e5c68d32060da /nixos | |
parent | 01ed14a53c5711914294ce45340ab39d084d5299 (diff) | |
parent | 9cdda88bb513a97ab9aad553660f2be1c5da791d (diff) |
Merge pull request #149415 from helsinki-systems/feat/more-types
nixos: Type some more options
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/hardware/pcmcia.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/development/hoogle.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/x11/window-managers/xmonad.nix | 2 |
3 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/hardware/pcmcia.nix b/nixos/modules/hardware/pcmcia.nix index d7d002ae6c8a..aef35a28e54d 100644 --- a/nixos/modules/hardware/pcmcia.nix +++ b/nixos/modules/hardware/pcmcia.nix @@ -35,6 +35,7 @@ in config = mkOption { default = null; + type = types.nullOr types.path; description = '' Path to the configuration file which maps the memory, IRQs and ports used by the PCMCIA hardware. diff --git a/nixos/modules/services/development/hoogle.nix b/nixos/modules/services/development/hoogle.nix index 7c635f7a5b8d..7c2a1c8e1624 100644 --- a/nixos/modules/services/development/hoogle.nix +++ b/nixos/modules/services/development/hoogle.nix @@ -40,6 +40,7 @@ in { haskellPackages = mkOption { description = "Which haskell package set to use."; + type = types.attrs; default = pkgs.haskellPackages; defaultText = literalExpression "pkgs.haskellPackages"; }; diff --git a/nixos/modules/services/x11/window-managers/xmonad.nix b/nixos/modules/services/x11/window-managers/xmonad.nix index a8f38046137a..ecad411ff683 100644 --- a/nixos/modules/services/x11/window-managers/xmonad.nix +++ b/nixos/modules/services/x11/window-managers/xmonad.nix @@ -39,10 +39,12 @@ in { options = { services.xserver.windowManager.xmonad = { enable = mkEnableOption "xmonad"; + haskellPackages = mkOption { default = pkgs.haskellPackages; defaultText = literalExpression "pkgs.haskellPackages"; example = literalExpression "pkgs.haskell.packages.ghc784"; + type = types.attrs; description = '' haskellPackages used to build Xmonad and other packages. This can be used to change the GHC version used to build |