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.
This commit is contained in:
Ryan Orendorff 2019-09-23 22:14:32 -07:00 committed by Robert Helgesson
parent 490f5fc585
commit 0740c257b1
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -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
{