Skip to content

Commit

Permalink
Add some option types
Browse files Browse the repository at this point in the history
  • Loading branch information
edolstra committed Oct 30, 2013
1 parent c7f7cee commit 4680af6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nixos/modules/config/system-path.nix
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ in
environment = {

systemPackages = mkOption {
type = types.listOf types.path;
default = [];
example = "[ pkgs.icecat3 pkgs.thunderbird ]";
description = ''
Expand All @@ -74,6 +75,7 @@ in
};

pathsToLink = mkOption {
type = types.listOf types.str;
# Note: We need `/lib' to be among `pathsToLink' for NSS modules
# to work.
default = [];
Expand Down
2 changes: 1 addition & 1 deletion nixos/modules/system/boot/loader/grub/grub.nix
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ in
# set at once.
system.boot.loader.id = "grub";

environment.systemPackages = [ grub ];
environment.systemPackages = optional (grub != null) grub;

boot.loader.grub.extraPrepareConfig =
concatStrings (mapAttrsToList (n: v: ''
Expand Down

0 comments on commit 4680af6

Please sign in to comment.