From 73acc86ab02423428c24edbae7723f71d1db249c Mon Sep 17 00:00:00 2001 From: isabel Date: Sat, 23 Nov 2024 16:58:05 +0000 Subject: [PATCH] fix: correct typing error --- systems/default.nix | 2 +- systems/flake-module.nix | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/systems/default.nix b/systems/default.nix index 15688b4ad..e1763c26d 100644 --- a/systems/default.nix +++ b/systems/default.nix @@ -45,7 +45,7 @@ in # the defaults consists of the following: # arch = "x86_64"; # target = "nixos"; - # deployable = false; + # deployable = false; # modules = [ ]; # specialArgs = { }; config.hosts = { diff --git a/systems/flake-module.nix b/systems/flake-module.nix index d6c4aa67c..d66bf4d1a 100644 --- a/systems/flake-module.nix +++ b/systems/flake-module.nix @@ -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 = [ ]; };