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
39
home/options/desktop/binds.nix
Normal file
39
home/options/desktop/binds.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
12
home/options/desktop/browser.nix
Normal file
12
home/options/desktop/browser.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.browser = {
|
||||
firefox.enable = mkEnableOption "";
|
||||
brave.enable = mkEnableOption "";
|
||||
};
|
||||
}
|
||||
11
home/options/desktop/communication.nix
Normal file
11
home/options/desktop/communication.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.communication = {
|
||||
discord.enable = mkEnableOption "";
|
||||
};
|
||||
}
|
||||
12
home/options/desktop/creative.nix
Normal file
12
home/options/desktop/creative.nix
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.creative = {
|
||||
inkscape.enable = mkEnableOption "";
|
||||
audacity.enable = mkEnableOption "";
|
||||
};
|
||||
}
|
||||
13
home/options/desktop/gaming.nix
Normal file
13
home/options/desktop/gaming.nix
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.gaming = {
|
||||
factorio.enable = mkEnableOption "";
|
||||
bottles.enable = mkEnableOption "";
|
||||
lutris.enable = mkEnableOption "";
|
||||
};
|
||||
}
|
||||
21
home/options/desktop/media.nix
Normal file
21
home/options/desktop/media.nix
Normal 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 "";
|
||||
};
|
||||
};
|
||||
}
|
||||
19
home/options/desktop/productivity.nix
Normal file
19
home/options/desktop/productivity.nix
Normal 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 "";
|
||||
};
|
||||
};
|
||||
}
|
||||
14
home/options/desktop/security.nix
Normal file
14
home/options/desktop/security.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
11
home/options/desktop/terminal.nix
Normal file
11
home/options/desktop/terminal.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.terminal = {
|
||||
foot.enable = mkEnableOption "";
|
||||
};
|
||||
}
|
||||
11
home/options/desktop/tools.nix
Normal file
11
home/options/desktop/tools.nix
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
{ lib, ... }:
|
||||
|
||||
let
|
||||
inherit (lib) mkEnableOption;
|
||||
in
|
||||
|
||||
{
|
||||
options.ooknet.tools = {
|
||||
kdeconnect.enable = mkEnableOption "";
|
||||
};
|
||||
}
|
||||
31
home/options/desktop/wayland.nix
Normal file
31
home/options/desktop/wayland.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue