From 0740c257b11de90ba04860a04c80ddfd2d81f111 Mon Sep 17 00:00:00 2001 From: Ryan Orendorff Date: Mon, 23 Sep 2019 22:14:32 -0700 Subject: [PATCH] fish: remove fileType function Replaced by types that are more common. This additionally reflects in the manpages, which should have types the reader is familiar with. --- modules/programs/fish.nix | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/modules/programs/fish.nix b/modules/programs/fish.nix index 3cfbfa4b3..52ea9189a 100644 --- a/modules/programs/fish.nix +++ b/modules/programs/fish.nix @@ -14,35 +14,6 @@ let mapAttrsToList (k: v: "alias ${k}='${v}'") cfg.shellAliases ); - fileType = textGen: types.submodule ( - { name, config, ... }: { - options = { - body = mkOption { - default = null; - type = types.nullOr types.lines; - description = "Body of the file."; - }; - - source = mkOption { - type = types.path; - description = '' - Path of the source file. The file name must not start - with a period. - ''; - }; - }; - - config = { - source = mkIf (config.body != null) ( - mkDefault (pkgs.writeTextFile { - inherit name; - text = textGen name config.body; - executable = true; - }) - ); - }; - } - ); in {