mirror of
https://github.com/nix-community/home-manager
synced 2024-12-22 11:03:13 +00:00
111011b2c2
- 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.
22 lines
339 B
Nix
22 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
|
|
'';
|
|
|
|
};
|
|
};
|
|
}
|