ark/users/modules/settings/default.nix

41 lines
623 B
Nix
Raw Normal View History

2022-07-01 04:45:26 +03:00
{
config,
2022-09-12 03:32:23 +03:00
lib,
2022-07-01 04:45:26 +03:00
...
}: let
2022-09-12 03:32:23 +03:00
cfg = config.settings;
inherit
(lib)
types
mkOption
mkIf
;
in {
options = {
settings.terminal = {
name = mkOption {
type = types.str;
};
};
settings.font = {
2022-07-01 04:45:26 +03:00
enable = mkOption {
type = types.bool;
default = false;
};
name = mkOption {
type = types.str;
};
package = mkOption {
type = types.package;
};
size = mkOption {
type = types.ints.unsigned;
};
};
2022-09-12 03:32:23 +03:00
};
2022-07-01 04:45:26 +03:00
2022-09-12 03:32:23 +03:00
config = mkIf cfg.font.enable {
home.packages = [cfg.font.package];
};
}