refactor(home:options): move modules/options -> ../options
This commit is contained in:
parent
1ac90d7985
commit
7755141752
26 changed files with 1 additions and 70 deletions
29
home/options/appearance/cursor.nix
Normal file
29
home/options/appearance/cursor.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
25
home/options/appearance/fonts.nix
Normal file
25
home/options/appearance/fonts.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
9
home/options/appearance/gtk.nix
Normal file
9
home/options/appearance/gtk.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.gtk.enable = mkEnableOption;
|
||||
}
|
||||
9
home/options/appearance/qt.nix
Normal file
9
home/options/appearance/qt.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.qt.enable = mkEnableOption "";
|
||||
}
|
||||
13
home/options/appearance/theme.nix
Normal file
13
home/options/appearance/theme.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
16
home/options/appearance/wallpaper.nix
Normal file
16
home/options/appearance/wallpaper.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue