mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 03:33:55 -05:00
home/options: readability improvements
This commit is contained in:
parent
7fa9990542
commit
8afd10a41b
|
@ -4,7 +4,9 @@
|
||||||
osConfig,
|
osConfig,
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: {
|
}: let
|
||||||
|
cfg = config.ar.home;
|
||||||
|
in {
|
||||||
options.ar.home = {
|
options.ar.home = {
|
||||||
apps = {
|
apps = {
|
||||||
alacritty.enable = lib.mkEnableOption "Alacritty terminal.";
|
alacritty.enable = lib.mkEnableOption "Alacritty terminal.";
|
||||||
|
@ -40,7 +42,7 @@
|
||||||
|
|
||||||
nemo.enable = lib.mkOption {
|
nemo.enable = lib.mkOption {
|
||||||
description = "Cinnamon Nemo file manager.";
|
description = "Cinnamon Nemo file manager.";
|
||||||
default = config.ar.home.defaultApps.fileManager == pkgs.cinnamon.nemo;
|
default = cfg.defaultApps.fileManager == pkgs.cinnamon.nemo;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -48,7 +50,7 @@
|
||||||
swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
|
swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
|
||||||
thunar.enable = lib.mkOption {
|
thunar.enable = lib.mkOption {
|
||||||
description = "Thunar file manager.";
|
description = "Thunar file manager.";
|
||||||
default = config.ar.home.defaultApps.fileManager == pkgs.xfce.thunar;
|
default = cfg.defaultApps.fileManager == pkgs.xfce.thunar;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -63,7 +65,7 @@
|
||||||
|
|
||||||
audioPlayer = lib.mkOption {
|
audioPlayer = lib.mkOption {
|
||||||
description = "Default audio player package.";
|
description = "Default audio player package.";
|
||||||
default = config.ar.home.defaultApps.videoPlayer;
|
default = cfg.defaultApps.videoPlayer;
|
||||||
type = lib.types.package;
|
type = lib.types.package;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -138,19 +140,19 @@
|
||||||
|
|
||||||
autoSuspend = lib.mkOption {
|
autoSuspend = lib.mkOption {
|
||||||
description = "Whether to autosuspend on idle.";
|
description = "Whether to autosuspend on idle.";
|
||||||
default = config.ar.home.desktop.hyprland.enable;
|
default = cfg.desktop.hyprland.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
randomWallpaper = lib.mkOption {
|
randomWallpaper = lib.mkOption {
|
||||||
description = "Whether to enable random wallpaper script.";
|
description = "Whether to enable random wallpaper script.";
|
||||||
default = config.ar.home.desktop.hyprland.enable;
|
default = cfg.desktop.hyprland.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
redShift = lib.mkOption {
|
redShift = lib.mkOption {
|
||||||
description = "Whether to redshift display colors at night.";
|
description = "Whether to redshift display colors at night.";
|
||||||
default = config.ar.home.desktop.hyprland.enable;
|
default = cfg.desktop.hyprland.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -159,19 +161,19 @@
|
||||||
|
|
||||||
autoRotate = lib.mkOption {
|
autoRotate = lib.mkOption {
|
||||||
description = "Whether to autorotate screen.";
|
description = "Whether to autorotate screen.";
|
||||||
default = config.ar.home.desktop.hyprland.tabletMode.enable;
|
default = cfg.desktop.hyprland.tabletMode.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
menuButton = lib.mkOption {
|
menuButton = lib.mkOption {
|
||||||
description = "Whether to add menu button for waybar.";
|
description = "Whether to add menu button for waybar.";
|
||||||
default = config.ar.home.desktop.hyprland.tabletMode.enable;
|
default = cfg.desktop.hyprland.tabletMode.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
virtKeyboard = lib.mkOption {
|
virtKeyboard = lib.mkOption {
|
||||||
description = "Whether to enable dynamic virtual keyboard.";
|
description = "Whether to enable dynamic virtual keyboard.";
|
||||||
default = config.ar.home.desktop.hyprland.tabletMode.enable;
|
default = cfg.desktop.hyprland.tabletMode.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -186,19 +188,19 @@
|
||||||
|
|
||||||
autoSuspend = lib.mkOption {
|
autoSuspend = lib.mkOption {
|
||||||
description = "Whether to autosuspend on idle.";
|
description = "Whether to autosuspend on idle.";
|
||||||
default = config.ar.home.desktop.sway.enable;
|
default = cfg.desktop.sway.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
randomWallpaper = lib.mkOption {
|
randomWallpaper = lib.mkOption {
|
||||||
description = "Whether to enable random wallpaper script.";
|
description = "Whether to enable random wallpaper script.";
|
||||||
default = config.ar.home.desktop.sway.enable;
|
default = cfg.desktop.sway.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
redShift = lib.mkOption {
|
redShift = lib.mkOption {
|
||||||
description = "Whether to redshift display colors at night.";
|
description = "Whether to redshift display colors at night.";
|
||||||
default = config.ar.home.desktop.sway.enable;
|
default = cfg.desktop.sway.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -237,7 +239,7 @@
|
||||||
|
|
||||||
darkMode = lib.mkOption {
|
darkMode = lib.mkOption {
|
||||||
description = "Whether to prefer dark mode apps or not.";
|
description = "Whether to prefer dark mode apps or not.";
|
||||||
default = config.ar.home.theme.enable;
|
default = cfg.theme.enable;
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue