wip commands
This commit is contained in:
@@ -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;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user