2024-06-11 17:49:50 -04:00
|
|
|
{
|
|
|
|
config,
|
2024-06-21 17:24:33 -04:00
|
|
|
lib,
|
|
|
|
osConfig,
|
|
|
|
pkgs,
|
2024-06-11 17:49:50 -04:00
|
|
|
...
|
2024-07-06 19:52:05 -04:00
|
|
|
}: let
|
|
|
|
cfg = config.ar.home;
|
|
|
|
in {
|
2024-06-26 22:13:02 -04:00
|
|
|
options.ar.home = {
|
|
|
|
apps = {
|
|
|
|
alacritty.enable = lib.mkEnableOption "Alacritty terminal.";
|
2024-07-16 12:44:50 -04:00
|
|
|
|
|
|
|
backblaze = {
|
|
|
|
enable = lib.mkEnableOption "Backblaze-b2 client with declarative authentication.";
|
|
|
|
|
|
|
|
keyIdFile = lib.mkOption {
|
|
|
|
description = "Backblaze key ID.";
|
|
|
|
default = null;
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
};
|
|
|
|
|
|
|
|
keyFile = lib.mkOption {
|
|
|
|
description = "Backblaze application key.";
|
|
|
|
default = null;
|
|
|
|
type = lib.types.nullOr lib.types.str;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
bash.enable = lib.mkEnableOption "Bash defaults.";
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
chromium = {
|
|
|
|
enable = lib.mkEnableOption "Chromium-based browser with default extensions.";
|
2024-07-12 20:50:01 -04:00
|
|
|
package = lib.mkPackageOption pkgs "brave" {};
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
emacs.enable = lib.mkEnableOption "Emacs text editor.";
|
|
|
|
fastfetch.enable = lib.mkEnableOption "Fastfetch.";
|
|
|
|
firefox.enable = lib.mkEnableOption "Firefox web browser.";
|
|
|
|
fuzzel.enable = lib.mkEnableOption "Fuzzel app launcher.";
|
2024-07-24 09:26:00 -04:00
|
|
|
helix.enable = lib.mkEnableOption "Helix text editor.";
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
keepassxc = {
|
|
|
|
enable = lib.mkEnableOption "KeePassXC password manager.";
|
2024-07-31 17:19:08 -04:00
|
|
|
package = lib.mkPackageOption pkgs "keepassxc" {};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
settings = lib.mkOption {
|
|
|
|
description = "KeePassXC settings.";
|
|
|
|
default = {};
|
|
|
|
type = lib.types.attrs;
|
2024-06-17 16:31:54 -04:00
|
|
|
};
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-07-23 23:21:59 -04:00
|
|
|
kitty.enable = lib.mkEnableOption "Kitty terminal.";
|
2024-06-26 22:13:02 -04:00
|
|
|
librewolf.enable = lib.mkEnableOption "Librewolf web browser.";
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
nemo.enable = lib.mkOption {
|
|
|
|
description = "Cinnamon Nemo file manager.";
|
2024-07-06 19:52:05 -04:00
|
|
|
default = cfg.defaultApps.fileManager == pkgs.cinnamon.nemo;
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-07-25 15:26:12 -04:00
|
|
|
rofi.enable = lib.mkEnableOption "Rofi launcher.";
|
2024-06-26 22:13:02 -04:00
|
|
|
swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
|
2024-07-25 15:26:12 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
thunar.enable = lib.mkOption {
|
|
|
|
description = "Thunar file manager.";
|
2024-07-06 19:52:05 -04:00
|
|
|
default = cfg.defaultApps.fileManager == pkgs.xfce.thunar;
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
tmux.enable = lib.mkEnableOption "Tmux shell session manager.";
|
|
|
|
vsCodium.enable = lib.mkEnableOption "VSCodium text editor.";
|
|
|
|
waybar.enable = lib.mkEnableOption "Waybar wayland panel.";
|
|
|
|
wlogout.enable = lib.mkEnableOption "Wlogout session prompt.";
|
2024-07-24 16:54:34 -04:00
|
|
|
yazi.enable = lib.mkEnableOption "Yazi terminal file manager.";
|
2024-07-13 21:22:20 -04:00
|
|
|
|
|
|
|
zed = {
|
|
|
|
enable = lib.mkEnableOption "Zed text editor.";
|
|
|
|
package = lib.mkPackageOption pkgs "zed-editor" {};
|
|
|
|
|
2024-07-15 15:45:02 -04:00
|
|
|
keymaps = lib.mkOption {
|
|
|
|
description = "Zed keymaps.";
|
|
|
|
default = [];
|
|
|
|
type = lib.types.listOf lib.types.attrs;
|
|
|
|
};
|
|
|
|
|
2024-07-13 21:22:20 -04:00
|
|
|
settings = lib.mkOption {
|
|
|
|
description = "Zed settings.";
|
|
|
|
default = {};
|
|
|
|
type = lib.types.attrs;
|
|
|
|
};
|
|
|
|
};
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
defaultApps = {
|
2024-06-28 21:07:20 -04:00
|
|
|
enable = lib.mkEnableOption "Declaratively set default apps and file associations.";
|
2024-07-12 20:50:01 -04:00
|
|
|
audioPlayer = lib.mkPackageOption pkgs "audio player" {default = ["celluloid"];};
|
|
|
|
editor = lib.mkPackageOption pkgs "text editor" {default = ["vscodium"];};
|
|
|
|
fileManager = lib.mkPackageOption pkgs "file manager" {default = ["cinnamon" "nemo"];};
|
|
|
|
imageViewer = lib.mkPackageOption pkgs "image viewer" {default = ["gnome" "eog"];};
|
|
|
|
pdfViewer = lib.mkPackageOption pkgs "pdf viewer" {default = ["evince"];};
|
2024-07-24 08:25:28 -04:00
|
|
|
terminal = lib.mkPackageOption pkgs "terminal emulator" {default = ["kitty"];};
|
2024-07-12 20:50:01 -04:00
|
|
|
terminalEditor = lib.mkPackageOption pkgs "terminal text editor" {default = ["vim"];};
|
|
|
|
videoPlayer = lib.mkPackageOption pkgs "video player" {default = ["celluloid"];};
|
|
|
|
webBrowser = lib.mkPackageOption pkgs "web browser" {default = ["firefox"];};
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
desktop = {
|
2024-07-30 16:34:06 -04:00
|
|
|
autoSuspend = lib.mkOption {
|
|
|
|
description = "Whether to autosuspend on idle.";
|
|
|
|
default = cfg.desktop.hyprland.enable || cfg.desktop.sway.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
|
|
|
|
randomWallpaper = lib.mkOption {
|
|
|
|
description = "Whether to enable random wallpaper script.";
|
|
|
|
default = cfg.desktop.hyprland.enable || cfg.desktop.sway.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
|
|
|
|
redShift = lib.mkOption {
|
|
|
|
description = "Whether to redshift display colors at night.";
|
|
|
|
default = cfg.desktop.hyprland.enable || cfg.desktop.sway.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
hyprland = {
|
2024-06-21 19:48:29 -04:00
|
|
|
enable = lib.mkOption {
|
2024-06-26 22:13:02 -04:00
|
|
|
description = "Hyprland with full desktop session components.";
|
|
|
|
default = osConfig.ar.desktop.hyprland.enable;
|
2024-06-21 19:48:29 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-07-15 00:14:18 -04:00
|
|
|
laptopMonitors = lib.mkOption {
|
|
|
|
description = "List of internal laptop monitors.";
|
|
|
|
default = [];
|
|
|
|
type = lib.types.listOf lib.types.str;
|
|
|
|
};
|
|
|
|
|
|
|
|
monitors = lib.mkOption {
|
|
|
|
description = "List of external monitors.";
|
|
|
|
default = [];
|
|
|
|
type = lib.types.listOf lib.types.str;
|
|
|
|
};
|
|
|
|
|
2024-07-19 13:59:48 -04:00
|
|
|
windowManagerBinds = lib.mkOption {
|
|
|
|
description = "Default binds for window management.";
|
|
|
|
default = {
|
|
|
|
down = "d";
|
|
|
|
left = "l";
|
|
|
|
right = "r";
|
|
|
|
up = "u";
|
|
|
|
h = "l";
|
|
|
|
j = "d";
|
|
|
|
k = "u";
|
|
|
|
l = "r";
|
|
|
|
};
|
|
|
|
type = lib.types.attrs;
|
|
|
|
};
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
tabletMode = {
|
|
|
|
enable = lib.mkEnableOption "Tablet mode for hyprland.";
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-07-30 16:51:41 -04:00
|
|
|
switches = lib.mkOption {
|
2024-07-15 00:14:18 -04:00
|
|
|
description = "Switches to activate tablet mode when toggled.";
|
|
|
|
default = [];
|
|
|
|
type = lib.types.listOf lib.types.str;
|
|
|
|
};
|
2024-06-21 17:44:27 -04:00
|
|
|
};
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
sway = {
|
|
|
|
enable = lib.mkOption {
|
|
|
|
description = "Sway with full desktop session components.";
|
|
|
|
default = osConfig.ar.desktop.sway.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-07-23 21:02:33 -04:00
|
|
|
windowManagerBinds = lib.mkOption {
|
|
|
|
description = "Default binds for window management.";
|
|
|
|
default = {
|
|
|
|
Down = "down";
|
|
|
|
Left = "left";
|
|
|
|
Right = "right";
|
|
|
|
Up = "up";
|
|
|
|
H = "left";
|
|
|
|
J = "down";
|
|
|
|
K = "up";
|
|
|
|
L = "right";
|
|
|
|
};
|
|
|
|
type = lib.types.attrs;
|
|
|
|
};
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
services = {
|
2024-08-02 16:42:37 -04:00
|
|
|
easyeffects = {
|
|
|
|
enable = lib.mkEnableOption "EasyEffects user service.";
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-08-02 16:42:37 -04:00
|
|
|
preset = lib.mkOption {
|
|
|
|
description = "Name of preset to start with.";
|
|
|
|
default = "";
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-08-02 15:40:50 -04:00
|
|
|
|
2024-08-02 14:59:22 -04:00
|
|
|
gammastep.enable = lib.mkEnableOption "Gammastep redshift daemon.";
|
2024-08-02 16:42:37 -04:00
|
|
|
mako.enable = lib.mkEnableOption "Mako notification daemon.";
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-08-02 16:42:37 -04:00
|
|
|
mpd = {
|
|
|
|
enable = lib.mkEnableOption "MPD user service.";
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-08-02 16:42:37 -04:00
|
|
|
musicDirectory = lib.mkOption {
|
|
|
|
description = "Name of music directory";
|
|
|
|
default = config.xdg.userDirs.music;
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
|
|
|
};
|
2024-08-02 14:42:35 -04:00
|
|
|
|
2024-08-02 17:00:43 -04:00
|
|
|
pipewire-inhibit.enable = lib.mkEnableOption "Inhibit idle when audio is playing with Pipewire.";
|
2024-08-02 14:42:35 -04:00
|
|
|
swayidle.enable = lib.mkEnableOption "Swayidle idle daemon.";
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-28 21:07:20 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
theme = {
|
2024-06-28 21:07:20 -04:00
|
|
|
enable = lib.mkEnableOption "Gtk, Qt, and application colors.";
|
|
|
|
|
2024-07-03 10:35:39 -04:00
|
|
|
darkMode = lib.mkOption {
|
|
|
|
description = "Whether to prefer dark mode apps or not.";
|
2024-07-06 19:52:05 -04:00
|
|
|
default = cfg.theme.enable;
|
2024-07-03 10:35:39 -04:00
|
|
|
type = lib.types.bool;
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
colors = {
|
|
|
|
text = lib.mkOption {
|
|
|
|
description = "Text color.";
|
2024-07-01 22:59:41 -04:00
|
|
|
default = "#FFFFFF";
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
background = lib.mkOption {
|
|
|
|
description = "Background color.";
|
2024-07-01 22:59:41 -04:00
|
|
|
default = "#242424";
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
primary = lib.mkOption {
|
|
|
|
description = "Primary color.";
|
2024-07-01 22:59:41 -04:00
|
|
|
default = "#78AEED"; #"#CA9EE6";
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
secondary = lib.mkOption {
|
|
|
|
description = "Secondary color.";
|
2024-07-01 22:59:41 -04:00
|
|
|
default = "#CA9EE6"; #"#99D1DB";
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
inactive = lib.mkOption {
|
|
|
|
description = "Inactive color.";
|
2024-07-01 22:59:41 -04:00
|
|
|
default = "#242424";
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
shadow = lib.mkOption {
|
|
|
|
description = "Drop shadow color.";
|
|
|
|
default = "#1A1A1A";
|
|
|
|
type = lib.types.str;
|
|
|
|
};
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-07-03 10:35:39 -04:00
|
|
|
gtk.hideTitleBar = lib.mkOption {
|
|
|
|
description = "Whether to hide GTK3/4 titlebars (useful for some window managers).";
|
2024-07-25 21:05:36 -04:00
|
|
|
default = false;
|
2024-07-03 10:35:39 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
wallpaper = lib.mkOption {
|
|
|
|
description = "Default wallpaper.";
|
2024-07-09 19:17:53 -04:00
|
|
|
default = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
|
2024-06-26 22:13:02 -04:00
|
|
|
type = lib.types.str;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|