diff --git a/doc/default.nix b/doc/default.nix index 2f4a3d69..f0f4129d 100644 --- a/doc/default.nix +++ b/doc/default.nix @@ -331,7 +331,7 @@ let ${fence}``` '' else - builtins.throw "unexpected value type: ${builtins.typeOf value}"; + throw "unexpected value type: ${builtins.typeOf value}"; # Prefix to remove from file paths when listing where an option is declared. declarationPrefix = "${inputs.self}"; @@ -353,7 +353,7 @@ let if lib.hasPrefix declarationPrefix declarationString then "- [${filePath}](${declarationPermalink}/${filePath})" else - builtins.throw "declaration not in ${declarationPrefix}: ${declarationString}"; + throw "declaration not in ${declarationPrefix}: ${declarationString}"; # You can embed HTML inside a Markdown document, but to render further # Markdown between the HTML tags, it must be surrounded by blank lines: @@ -525,7 +525,7 @@ let if hasTitle then " - [${title}](${relativePath})" else - builtins.throw "page must start with a title: ${path}"; + throw "page must start with a title: ${path}"; in summary // { diff --git a/stylix/home-manager-integration.nix b/stylix/home-manager-integration.nix index a8af8e3a..4ea4de6f 100644 --- a/stylix/home-manager-integration.nix +++ b/stylix/home-manager-integration.nix @@ -8,7 +8,7 @@ let copyModules = - builtins.map + map ( { path, diff --git a/stylix/testbed.nix b/stylix/testbed.nix index 833da487..6e5a4f26 100644 --- a/stylix/testbed.nix +++ b/stylix/testbed.nix @@ -167,13 +167,13 @@ let lib.mapAttrsToList ( testbed: type: if type != "regular" then - builtins.throw "${testbed} must be regular: ${type}" + throw "${testbed} must be regular: ${type}" else if !lib.hasSuffix ".nix" testbed then - builtins.throw "testbed must be a Nix file: ${testbeds}/${testbed}" + throw "testbed must be a Nix file: ${testbeds}/${testbed}" else if testbed == ".nix" then - builtins.throw "testbed must have a name: ${testbed}" + throw "testbed must have a name: ${testbed}" else {