refactor(home:options): move modules/options -> ../options

This commit is contained in:
ooks-io 2024-06-10 13:25:14 +12:00
parent 1ac90d7985
commit 7755141752
26 changed files with 1 additions and 70 deletions

View file

@ -0,0 +1,29 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption mkOption types;
in
{
options.ooknet.cursor = {
enable = mkEnableOption "Enable cursor module";
package = mkOption {
type = types.package;
default = null;
description = "Package for cursor";
example = "pkgs.bibata-cursors";
};
name = mkOption {
type = types.str;
default = "";
description = "Name of cursor";
example = "Bibata-Modern-Ice";
};
size = lib.mkOption {
type = types.int;
default = 22;
description = "Size of cursor";
example = "22";
};
};
}

View file

@ -0,0 +1,25 @@
{ lib, ... }:
let
mkFontOption = kind: {
family = lib.mkOption {
type = lib.types.str;
default = "";
description = "Family name for ${kind} font profile";
example = "Fira Code";
};
package = lib.mkOption {
type = lib.types.package;
default = null;
description = "Package for ${kind} font profile";
example = "pkgs.fira-code";
};
};
in
{
options.ooknet.theme.fonts = {
enable = lib.mkEnableOption "Whether to enable font profiles";
monospace = mkFontOption "monospace";
regular = mkFontOption "regular";
};
}

View file

@ -0,0 +1,9 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.gtk.enable = mkEnableOption;
}

View file

@ -0,0 +1,9 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.qt.enable = mkEnableOption "";
}

View file

@ -0,0 +1,13 @@
{ lib, config, ... }:
let
inherit (lib) mkOption;
inherit (lib.types) nullOr enum;
in
{
options.ooknet.theme = mkOption {
type = nullOr (enum [ "minimal" "phone" ]);
default = null;
};
}

View file

@ -0,0 +1,16 @@
{ lib, ... }:
let
inherit (lib) types mkEnableOption mkOption;
in
{
options.ooknet.wallpaper = {
enable = mkEnableOption "";
path = mkOption {
type = types.path;
default = null;
description = "Wallpaper Path";
};
};
}