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-06-26 22:13:02 -04:00
|
|
|
options.ar.home = {
|
|
|
|
apps = {
|
|
|
|
alacritty.enable = lib.mkEnableOption "Alacritty terminal.";
|
|
|
|
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-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
package = lib.mkOption {
|
|
|
|
description = "Package for Chromium.";
|
|
|
|
default = pkgs.brave;
|
|
|
|
type = lib.types.package;
|
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
|
|
|
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-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
keepassxc = {
|
|
|
|
enable = lib.mkEnableOption "KeePassXC password manager.";
|
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-06-26 22:13:02 -04:00
|
|
|
librewolf.enable = lib.mkEnableOption "Librewolf web browser.";
|
|
|
|
mako.enable = lib.mkEnableOption "Mako notification daemon.";
|
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-06-29 21:35:07 -04:00
|
|
|
default = config.ar.home.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-06-26 22:13:02 -04:00
|
|
|
neovim.enable = lib.mkEnableOption "Neovim text editor.";
|
|
|
|
swaylock.enable = lib.mkEnableOption "Swaylock screen locker.";
|
|
|
|
thunar.enable = lib.mkOption {
|
|
|
|
description = "Thunar file manager.";
|
2024-06-29 21:35:07 -04:00
|
|
|
default = config.ar.home.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-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-06-29 21:35:07 -04:00
|
|
|
audioPlayer = lib.mkOption {
|
|
|
|
description = "Default audio player package.";
|
|
|
|
default = config.ar.home.defaultApps.videoPlayer;
|
|
|
|
type = lib.types.package;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
editor = lib.mkOption {
|
|
|
|
description = "Default editor package.";
|
|
|
|
default = config.programs.vscode.package;
|
|
|
|
type = lib.types.package;
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
fileManager = lib.mkOption {
|
|
|
|
description = "Default file manager package.";
|
|
|
|
default = pkgs.cinnamon.nemo;
|
|
|
|
type = lib.types.package;
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
imageViewer = lib.mkOption {
|
|
|
|
description = "Default image viewer package.";
|
|
|
|
default = pkgs.gnome.eog;
|
|
|
|
type = lib.types.package;
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
pdfViewer = lib.mkOption {
|
|
|
|
description = "Default PDF viewer package.";
|
|
|
|
default = pkgs.evince;
|
|
|
|
type = lib.types.package;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
terminal = lib.mkOption {
|
|
|
|
description = "Default terminal package.";
|
|
|
|
default = config.programs.alacritty.package;
|
|
|
|
type = lib.types.package;
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
terminalEditor = lib.mkOption {
|
|
|
|
description = "Default terminal editor package.";
|
|
|
|
default = config.programs.nixvim.package;
|
|
|
|
type = lib.types.package;
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
videoPlayer = lib.mkOption {
|
|
|
|
description = "Default video player package.";
|
|
|
|
default = pkgs.celluloid;
|
|
|
|
type = lib.types.package;
|
2024-06-26 22:13:02 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
|
|
|
webBrowser = lib.mkOption {
|
|
|
|
description = "Default web browser package.";
|
|
|
|
default = config.programs.firefox.package;
|
|
|
|
type = lib.types.package;
|
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 = {
|
|
|
|
cinnamon.enable = lib.mkOption {
|
|
|
|
description = "Cinnamon with sane defaults";
|
|
|
|
default = osConfig.ar.desktop.cinnamon.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
gnome.enable = lib.mkOption {
|
|
|
|
description = "GNOME with sane defaults.";
|
|
|
|
default = osConfig.ar.desktop.gnome.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
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-06-26 22:13:02 -04:00
|
|
|
autoSuspend = lib.mkOption {
|
|
|
|
description = "Whether to autosuspend on idle.";
|
|
|
|
default = config.ar.home.desktop.hyprland.enable;
|
2024-06-21 17:24:33 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
randomWallpaper = lib.mkOption {
|
|
|
|
description = "Whether to enable random wallpaper script.";
|
|
|
|
default = config.ar.home.desktop.hyprland.enable;
|
2024-06-21 17:24:33 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
redShift = lib.mkOption {
|
|
|
|
description = "Whether to redshift display colors at night.";
|
|
|
|
default = config.ar.home.desktop.hyprland.enable;
|
|
|
|
type = lib.types.bool;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
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-06-26 22:13:02 -04:00
|
|
|
autoRotate = lib.mkOption {
|
|
|
|
description = "Whether to autorotate screen.";
|
|
|
|
default = config.ar.home.desktop.hyprland.tabletMode.enable;
|
2024-06-21 17:44:27 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
menuButton = lib.mkOption {
|
|
|
|
description = "Whether to add menu button for waybar.";
|
|
|
|
default = config.ar.home.desktop.hyprland.tabletMode.enable;
|
2024-06-21 17:44:27 -04:00
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
virtKeyboard = lib.mkOption {
|
|
|
|
description = "Whether to enable dynamic virtual keyboard.";
|
|
|
|
default = config.ar.home.desktop.hyprland.tabletMode.enable;
|
2024-06-21 17:44:27 -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
|
|
|
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-06-26 22:13:02 -04:00
|
|
|
autoSuspend = lib.mkOption {
|
|
|
|
description = "Whether to autosuspend on idle.";
|
|
|
|
default = config.ar.home.desktop.sway.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
randomWallpaper = lib.mkOption {
|
|
|
|
description = "Whether to enable random wallpaper script.";
|
|
|
|
default = config.ar.home.desktop.sway.enable;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
redShift = lib.mkOption {
|
|
|
|
description = "Whether to redshift display colors at night.";
|
|
|
|
default = config.ar.home.desktop.sway.enable;
|
|
|
|
type = lib.types.bool;
|
2024-06-20 19:24:40 -04:00
|
|
|
};
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
2024-06-29 21:35:07 -04:00
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
startupApps = lib.mkOption {
|
|
|
|
description = "Apps to launch at startup";
|
|
|
|
default = [];
|
|
|
|
type = lib.types.listOf (lib.types.str);
|
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 = {
|
|
|
|
mpd = {
|
2024-06-29 21:35:07 -04:00
|
|
|
enable = lib.mkEnableOption "MPD user service.";
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
musicDirectory = lib.mkOption {
|
|
|
|
description = "Name of music directory";
|
|
|
|
default = config.xdg.userDirs.music;
|
|
|
|
type = lib.types.str;
|
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
|
|
|
easyeffects = {
|
2024-06-29 21:35:07 -04:00
|
|
|
enable = lib.mkEnableOption "EasyEffects user service.";
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
preset = lib.mkOption {
|
|
|
|
description = "Name of preset to start with.";
|
|
|
|
default = "";
|
|
|
|
type = lib.types.str;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
|
|
|
};
|
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.";
|
|
|
|
default = config.ar.home.theme.enable;
|
|
|
|
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).";
|
|
|
|
default = false;
|
|
|
|
type = lib.types.bool;
|
|
|
|
};
|
|
|
|
|
2024-06-26 22:13:02 -04:00
|
|
|
wallpaper = lib.mkOption {
|
|
|
|
description = "Default wallpaper.";
|
|
|
|
default = "${config.xdg.dataHome}/backgrounds/jr-korpa-9XngoIpxcEo-unsplash.jpg";
|
|
|
|
type = lib.types.str;
|
2024-06-11 17:49:50 -04:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|