Skip to content

Commit

Permalink
fix: correct typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
isabelroses committed Nov 23, 2024
1 parent a5681c1 commit 73acc86
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion systems/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ in
# the defaults consists of the following:
# arch = "x86_64";
# target = "nixos";
# deployable = false;
# deployable = false;
# modules = [ ];
# specialArgs = { };
config.hosts = {
Expand Down
8 changes: 3 additions & 5 deletions systems/flake-module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,9 @@ in
};

modules = mkOption {
type =
let
typ = types.listOf (types.either types.path types.pathInStore);
in
types.either (types.listOf typ) typ;
# we really expect a list of paths but i want to accept lists of lists of lists and so on
# since they will be flattened in the final function that applies the settings
type = types.listOf types.anything;
default = [ ];
};

Expand Down

0 comments on commit 73acc86

Please sign in to comment.