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,39 @@
{ lib, pkgs, ... }:
let
mkBind = message: lib.mkOption {
type = lib.types.str;
default = "${pkgs.libnotify}/bin/notify-send --urgency=normal 'Warning' '${message}'";
};
in
{
options.ooknet.binds = {
browser = mkBind "No browser is enabled";
terminal = mkBind "No terminal is enabled";
terminalLaunch = mkBind "Failed to launch tui";
fileManager = mkBind "No file manager is enabled.";
notes = mkBind "No Notes app is enabled";
discord = mkBind "No Discord app is enabled";
steam = mkBind "Steam is not enabled";
powerMenu = mkBind "No power menu is enabled";
lock = mkBind "No screen locker enabled";
password = mkBind "No password manager enabled";
zellijMenu = mkBind "Zellij Menu is not enabled";
volume = {
up = mkBind "Volume binding not found...";
down = mkBind "Volume binding not found...";
mute = mkBind "Volume binding not found...";
};
brightness = {
up = mkBind "Brightness binding not found...";
down = mkBind "Brightness binding not found...";
};
spotify = {
launch = mkBind "Spotify is not enabled";
next = mkBind "Spotify is not enabled";
previous = mkBind "Spotify is not enabled";
play = mkBind "Spotify is not enabled";
};
};
}

View file

@ -0,0 +1,12 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.browser = {
firefox.enable = mkEnableOption "";
brave.enable = mkEnableOption "";
};
}

View file

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

View file

@ -0,0 +1,12 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.creative = {
inkscape.enable = mkEnableOption "";
audacity.enable = mkEnableOption "";
};
}

View file

@ -0,0 +1,13 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.gaming = {
factorio.enable = mkEnableOption "";
bottles.enable = mkEnableOption "";
lutris.enable = mkEnableOption "";
};
}

View file

@ -0,0 +1,21 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.media = {
image = {
imv.enable = mkEnableOption "";
};
video = {
mpv.enable = mkEnableOption "";
jellyfinPlayer.enable = mkEnableOption "";
youtube.enable = mkEnableOption "";
};
music = {
tui.enable = mkEnableOption "";
};
};
}

View file

@ -0,0 +1,19 @@
{ lib, ... }:
let
inherit (lib) mkEnableOption;
in
{
options.ooknet.productivity = {
notes = {
obsidian.enable = mkEnableOption "";
};
office = {
libreoffice.enable = mkEnableOption "";
};
pdf = {
zathura.enable = mkEnableOption "";
};
};
}

View file

@ -0,0 +1,14 @@
{ lib, ... }:
let
inherit (lib) mkOption types;
inherit (types) nullOr enum;
in
{
options.ooknet.security.polkit = mkOption {
type = nullOr (enum ["gnome" "pantheon"]); # TODO: add kde agent
default = "gnome";
description = "Type of polkit agent module to use";
};
}

View file

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

View file

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

View file

@ -0,0 +1,31 @@
{ lib, ... }:
let
inherit (lib) mkOption mkEnableOption types;
inherit (types) nullOr enum;
in
{
ooknet.wayland = {
enable = mkEnableOption "";
compositor = mkOption {
type = nullOr (enum [ "hyprland" ]);
};
launcher = mkOption {
type = nullOr (enum [ "rofi" "tofi" ]);
default = null;
};
locker = mkOption {
type = nullOr (enum [ "hyprlock" "swaylock" ]);
default = null;
};
notification = mkOption {
type = nullOr (enum [ "mako" ]);
default = null;
};
bar = mkOption {
type = nullOr (enum [ "waybar" ]);
default = null;
};
};
}