mirror of
https://github.com/nix-community/home-manager
synced 2024-08-22 12:06:31 +02:00
- If a function is defined, check that the function file exists and that the contents matches a given string. - If no functions exists, the functions folder should not exist. - Verify plugin functionality.
23 lines
339 B
Nix
23 lines
339 B
Nix
{ config, lib, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
config = {
|
|
programs.fish = {
|
|
enable = true;
|
|
|
|
functions = { };
|
|
};
|
|
|
|
nmt = {
|
|
description =
|
|
"if fish.functions is blank, the functions folder should not exist.";
|
|
script = ''
|
|
assertPathNotExists home-files/.config/fish/functions
|
|
'';
|
|
|
|
};
|
|
};
|
|
}
|