refactor(home): homeModules -> ooknet

This commit is contained in:
ooks-io 2024-05-30 22:02:18 +12:00
parent b81c929a0b
commit 1d1cb3092f
104 changed files with 214 additions and 255 deletions

View file

@ -8,7 +8,7 @@
#./brave -- still needs tio be implemented
];
options.homeModules.desktop.browser = {
options.ooknet.desktop.browser = {
firefox = {
enable = lib.mkEnableOption "Enable firefox browser";
default = lib.mkOption {

View file

@ -2,7 +2,7 @@
let
addons = inputs.firefox-addons.packages.${pkgs.system};
cfg = config.homeModules.desktop.browser.firefox;
cfg = config.ooknet.desktop.browser.firefox;
inherit (lib) mkIf;
in
{

View file

@ -1,8 +1,8 @@
{ inputs, config, lib, ... }:
let
cfg = config.homeModules.desktop.browser.schizofox;
fonts = config.homeModules.theme.fonts;
cfg = config.ooknet.desktop.browser.schizofox;
fonts = config.ooknet.theme.fonts;
inherit (config.colorscheme) palette;
in

View file

@ -1,14 +1,14 @@
{ config, lib, pkgs, ... }:
let
cfg = config.homeModules.desktop.communication.discord;
fonts = config.homeModules.theme.fonts;
cfg = config.ooknet.desktop.communication.discord;
fonts = config.ooknet.theme.fonts;
inherit (config.colorscheme) palette;
inherit (lib) mkIf mkEnableOption;
in
{
options.homeModules.desktop.communication.discord.enable = mkEnableOption "Enable discord home manager module";
options.ooknet.desktop.communication.discord.enable = mkEnableOption "Enable discord home manager module";
config = mkIf cfg.enable {
home.packages = [ pkgs.vesktop ];

View file

@ -1,12 +1,12 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.creative.audio.audacity;
cfg = config.ooknet.desktop.creative.audio.audacity;
inherit (lib) mkIf mkEnableOption;
in
{
options.homeModules.desktop.creative.audio.audacity.enable = mkEnableOption "Enable audacity home module";
options.ooknet.desktop.creative.audio.audacity.enable = mkEnableOption "Enable audacity home module";
config = mkIf cfg.enable {
home.packages = [ pkgs.audacity ];
};

View file

@ -1,12 +1,12 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.creative.audio.inkscape;
cfg = config.ooknet.desktop.creative.audio.inkscape;
inherit (lib) mkIf mkEnableOption;
in
{
options.homeModules.desktop.creative.audio.inkscape.enable = mkEnableOption "Enable inkscape home module";
options.ooknet.desktop.creative.audio.inkscape.enable = mkEnableOption "Enable inkscape home module";
config = mkIf cfg.enable {
home.packages = [ pkgs.inkscape-with-extensions ];
};

View file

@ -2,11 +2,11 @@
let
inherit (lib) mkEnableOption mkIf;
cfg = config.homeModules.desktop.gaming.bottles;
cfg = config.ooknet.desktop.gaming.bottles;
in
{
options.homeModules.desktop.gaming.bottles.enable = mkEnableOption "Enable bottles home-manager modules";
options.ooknet.desktop.gaming.bottles.enable = mkEnableOption "Enable bottles home-manager modules";
config = mkIf cfg.enable {
home.packages = with pkgs; [

View file

@ -8,7 +8,7 @@
./bottles
];
options.homeModules.desktop.gaming = {
options.ooknet.desktop.gaming = {
factorio = {
enable = lib.mkEnableOption "Enable factorio home module";
};

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg=config.homeModules.desktop.gaming.factorio;
cfg=config.ooknet.desktop.gaming.factorio;
in
{

View file

@ -2,11 +2,11 @@
let
inherit (lib) mkIf mkEnableOption;
cfg = config.homeModules.desktop.gaming.lutris;
cfg = config.ooknet.desktop.gaming.lutris;
in
{
options.homeModules.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
options.ooknet.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
config = mkIf cfg.enable {
home.packages = with pkgs; [

View file

@ -4,7 +4,7 @@
./imv
];
options.homeModules.desktop.media.image = {
options.ooknet.desktop.media.image = {
imv = {
enable = lib.mkEnableOption "Enable imv image viewer";
};

View file

@ -1,6 +1,6 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.media.image.imv;
cfg = config.ooknet.desktop.media.image.imv;
in
{
config = lib.mkIf cfg.enable {

View file

@ -6,7 +6,7 @@
./tui
];
options.homeModules.desktop.media.music = {
options.ooknet.desktop.media.music = {
tui = {
enable = lib.mkEnableOption "Enable tui music";
};

View file

@ -1,12 +1,12 @@
{lib, config, ... }:
let
cfg = config.homeModules.desktop.media.music.easyeffects;
cfg = config.ooknet.desktop.media.music.easyeffects;
inherit (lib) mkIf mkEnableOption;
in
{
options.homeModules.desktop.media.music.easyeffects.enable = mkEnableOption "Enable easy effects home module";
options.ooknet.desktop.media.music.easyeffects.enable = mkEnableOption "Enable easy effects home module";
config = mkIf cfg.enable {
services.easyeffects = {
enable = true;

View file

@ -2,8 +2,8 @@
let
inherit (config.colorscheme) palette;
cfg = config.homeModules.desktop.media.music.tui;
zellij = config.homeModules.console.multiplexer.zellij;
cfg = config.ooknet.desktop.media.music.tui;
zellij = config.ooknet.console.multiplexer.zellij;
spotify-cli = pkgs.spotify-player.override {
withImage = false;
withSixel = false;

View file

@ -6,7 +6,7 @@
./mpv
];
options.homeModules.desktop.media.video = {
options.ooknet.desktop.media.video = {
mpv = {
enable = lib.mkEnableOption "Enable mpv video player";
};

View file

@ -1,6 +1,6 @@
{ pkgs, lib, config, ... }:
let
cfg = config.homeModules.desktop.media.video.jellyfin;
cfg = config.ooknet.desktop.media.video.jellyfin;
in
{
config = lib.mkIf cfg.enable {

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.media.video.mpv;
cfg = config.ooknet.desktop.media.video.mpv;
in
{
config = {

View file

@ -1,6 +1,6 @@
{ lib, config, pkgs, ...}:
let
cfg = config.homeModules.desktop.media.video.youtube;
cfg = config.ooknet.desktop.media.video.youtube;
in
{
config = lib.mkIf cfg.enable {

View file

@ -7,7 +7,7 @@
./office
];
options.homeModules.desktop.productivity = {
options.ooknet.desktop.productivity = {
obsidian = {
enable = lib.mkEnableOption "enable obsidian home module";
};

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.productivity.obsidian;
cfg = config.ooknet.desktop.productivity.obsidian;
in
{

View file

@ -2,11 +2,11 @@
let
inherit (lib) mkIf mkEnableOption;
cfg = config.homeModules.desktop.productivity.office;
cfg = config.ooknet.desktop.productivity.office;
in
{
options.homeModules.desktop.productivity.office.enable = mkEnableOption "enable office home module";
options.ooknet.desktop.productivity.office.enable = mkEnableOption "enable office home module";
config = mkIf cfg.enable {
home.packages = [ pkgs.libreoffice ];
};

View file

@ -1,9 +1,9 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.productivity.zathura;
cfg = config.ooknet.desktop.productivity.zathura;
inherit (config.colorscheme) palette;
fonts = config.homeModules.theme.fonts;
fonts = config.ooknet.theme.fonts;
in
{

View file

@ -3,11 +3,11 @@
let
inherit (lib) mkIf types mkOption;
inherit (builtins) elem;
cfg = config.homeModules.desktop.security.polkit;
cfg = config.ooknet.desktop.security.polkit;
in
{
options.homeModules.desktop.security.polkit = mkOption {
options.ooknet.desktop.security.polkit = mkOption {
type = types.enum ["gnome" "pantheon"]; # TODO: add kde agent
default = "";
description = "Type of polkit agent module to use";

View file

@ -1,6 +1,6 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.terminal;
cfg = config.ooknet.desktop.terminal;
in
{
@ -9,7 +9,7 @@
./kitty
];
options.homeModules.desktop.terminal = {
options.ooknet.desktop.terminal = {
foot = {
enable = lib.mkEnableOption "Enable foot terminal";
default = lib.mkOption {

View file

@ -2,8 +2,8 @@
let
inherit (config.colorscheme) palette;
fonts = config.homeModules.theme.fonts;
cfg = config.homeModules.desktop.terminal.foot;
fonts = config.ooknet.theme.fonts;
cfg = config.ooknet.desktop.terminal.foot;
in
{

View file

@ -2,9 +2,9 @@
let
inherit (config.colorscheme) palette;
fonts = config.homeModules.theme.font;
cfg = config.homeModules.desktop.terminal.kitty;
fish = config.homeModules.console.shell.fish;
fonts = config.ooknet.theme.font;
cfg = config.ooknet.desktop.terminal.kitty;
fish = config.ooknet.console.shell.fish;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, inputs, ... }:
let
cfg = config.homeModules.desktop.wayland.bar.ags;
cfg = config.ooknet.desktop.wayland.bar.ags;
in
{

View file

@ -6,7 +6,7 @@
./waybar
];
options.homeModules.desktop.wayland.bar = {
options.ooknet.desktop.wayland.bar = {
eww = {
enable = lib.mkEnableOption "Enable Eww bar";
};

View file

@ -1,8 +1,8 @@
{ config, lib, pkgs, ... }:
let
fonts = config.homeModules.theme.fonts;
cfg = config.homeModules.desktop.wayland.bar.waybar;
fonts = config.ooknet.theme.fonts;
cfg = config.ooknet.desktop.wayland.bar.waybar;
monitorWidth = (lib.head config.monitors).width - 20;
inherit (config.colorscheme) palette;
in

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland;
cfg = config.ooknet.desktop.wayland;
in
{
imports = [
@ -13,7 +13,7 @@ in
./launcher
];
options.homeModules.desktop.wayland = {
options.ooknet.desktop.wayland = {
enable = lib.mkEnableOption "Enable wayland specific confurations";
nvidia = lib.mkOption {
type = lib.types.bool;

View file

@ -1,7 +1,7 @@
{ config, lib, inputs, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.launcher.anyrun;
cfg = config.ooknet.desktop.wayland.launcher.anyrun;
in
{

View file

@ -7,7 +7,7 @@
./tofi
];
options.homeModules.desktop.wayland.launcher = {
options.ooknet.desktop.wayland.launcher = {
anyrun = {
enable = lib.mkEnableOption "enable anyrun launcher module";
};

View file

@ -1,8 +1,8 @@
{ lib, config, pkgs, ... }:
let
fonts = config.homeModules.theme.fonts;
cfg = config.homeModules.desktop.wayland.launcher.rofi;
fonts = config.ooknet.theme.fonts;
cfg = config.ooknet.desktop.wayland.launcher.rofi;
in
{

View file

@ -1,8 +1,8 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.launcher.tofi;
fonts = config.homeModules.theme.fonts;
cfg = config.ooknet.desktop.wayland.launcher.tofi;
fonts = config.ooknet.theme.fonts;
inherit (config.colorscheme) palette;
in

View file

@ -7,7 +7,7 @@
./hyprlock
];
options.homeModules.desktop.wayland.lockscreen = {
options.ooknet.desktop.wayland.lockscreen = {
swaylock = {
enable = lib.mkEnableOption "Enable Swaylock screen";
};

View file

@ -1,8 +1,8 @@
{ lib, config, inputs, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.lockscreen.hyprlock;
fonts = config.homeModules.theme.fonts;
cfg = config.ooknet.desktop.wayland.lockscreen.hyprlock;
fonts = config.ooknet.theme.fonts;
inherit (config.colorscheme) palette;
in

View file

@ -2,9 +2,9 @@
let
inherit (config.colorscheme) palette;
fonts = config.homeModules.theme.fonts;
wallpaperPath = config.homeModules.theme.wallpaper.path;
cfg = config.homeModules.desktop.wayland.lockscreen.swaylock;
fonts = config.ooknet.theme.fonts;
wallpaperPath = config.ooknet.theme.wallpaper.path;
cfg = config.ooknet.desktop.wayland.lockscreen.swaylock;
in
{
config = lib.mkIf cfg.enable {

View file

@ -6,7 +6,7 @@
#./dunst -- still needs to be implemented
];
options.homeModules.desktop.wayland.notification = {
options.ooknet.desktop.wayland.notification = {
mako = {
enable = lib.mkEnableOption "Enable mako notification daemon";
};

View file

@ -1,8 +1,8 @@
{ config, lib, ... }:
let
inherit (config.colorscheme) palette variant;
fonts = config.homeModules.theme.fonts;
cfg = config.homeModules.desktop.wayland.notification.mako;
fonts = config.ooknet.theme.fonts;
cfg = config.ooknet.desktop.wayland.notification.mako;
in {
config = lib.mkIf cfg.enable {
services.mako = {

View file

@ -6,7 +6,7 @@
./tools
];
options.homeModules.desktop.wayland.utility = {
options.ooknet.desktop.wayland.utility = {
tools = {
enable = lib.mkEnableOption "Enable wayland specific tools";
};

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland.utility.gammastep;
cfg = config.ooknet.desktop.wayland.utility.gammastep;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.utility.tools;
cfg = config.ooknet.desktop.wayland.utility.tools;
in
{

View file

@ -5,7 +5,7 @@
./hyprland
];
options.homeModules.desktop.wayland.windowManager = {
options.ooknet.desktop.wayland.windowManager = {
hyprland = {
enable = lib.mkEnableOption "Enable Hyprland window-manager";
};

View file

@ -1,6 +1,6 @@
{ lib, config, pkgs, inputs, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
inherit (import ./pkgs {inherit pkgs;}) hyprbrightness hyprvolume;
inherit (inputs.ooks-scripts.packages.${pkgs.system}) powermenu zellijmenu;
in

View file

@ -6,7 +6,7 @@
./hyprshade
];
options.homeModules.desktop.wayland.windowManager.hyprland.extras = {
options.ooknet.desktop.wayland.windowManager.hyprland.extras = {
hyprcapture = {
enable = lib.mkEnableOption "Enable hyprcapture screenshot/recording module";
};

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, inputs, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland.extras.hyprcapture;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland.extras.hyprcapture;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland.extras.hyprshade;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland.extras.hyprshade;
in
{

View file

@ -1,7 +1,7 @@
{ config, lib, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
pointer = config.home.pointerCursor;
inherit (config.colorscheme) palette;
in

View file

@ -1,7 +1,7 @@
{ lib, config, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{

View file

@ -1,7 +1,7 @@
{ config, lib, pkgs, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{

View file

@ -1,8 +1,8 @@
{ lib, config, inputs, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
wallpaperPath = config.homeModules.theme.wallpaper.path;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
wallpaperPath = config.ooknet.theme.wallpaper.path;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{

View file

@ -1,7 +1,7 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{

View file

@ -1,6 +1,6 @@
{ lib, config, ... }:
let
cfg = config.homeModules.desktop.wayland.windowManager.hyprland;
cfg = config.ooknet.desktop.wayland.windowManager.hyprland;
in
{
config = {