wip commands

This commit is contained in:
Shelvacu
2024-06-22 17:00:44 -07:00
parent 5a9e975723
commit e052a165ec

View File

@@ -71,6 +71,26 @@
in { in {
imports = [ ./package-set.nix ]; imports = [ ./package-set.nix ];
options = { options = {
vacu.commands = mkOption {
default = {};
type = types.attrsOf (types.submodule ({ name, config, options, ... }: {
options = {
content = mkOption {
type = types.str;
default = "";
};
enable = mkOption {
type = types.bool;
default = config.content != "";
defaultText = ''${name}.content != ""'';
};
kind = mkOption {
type = types.enum [ "alias" "function" ];
default = "alias";
};
};
}));
};
vacu.ssh.authorizedKeys = mkOption { vacu.ssh.authorizedKeys = mkOption {
type = types.listOf types.str; type = types.listOf types.str;
}; };