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

@ -1,10 +1,10 @@
{ lib, config, ... }:
let
cfg = config.homeModules.theme.cursor;
cfg = config.ooknet.theme.cursor;
in
{
options.homeModules.theme.cursor = {
options.ooknet.theme.cursor = {
enable = lib.mkEnableOption "Enable cursor module";
package = lib.mkOption {
type = lib.types.package;

View file

@ -15,10 +15,10 @@ let
example = "pkgs.fira-code";
};
};
cfg = config.homeModules.theme.fonts;
cfg = config.ooknet.theme.fonts;
in
{
options.homeModules.theme.fonts = {
options.ooknet.theme.fonts = {
enable = lib.mkEnableOption "Whether to enable font profiles";
monospace = mkFontOption "monospace";
regular = mkFontOption "regular";

View file

@ -2,10 +2,10 @@
let
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) gtkThemeFromScheme;
cfg = config.homeModules.theme.gtk;
cfg = config.ooknet.theme.gtk;
in
{
options.homeModules.theme.gtk = {
options.ooknet.theme.gtk = {
enable = lib.mkEnableOption "Enable gtk theme module";
# TODO: add theme option
};
@ -14,7 +14,7 @@ in
gtk = {
enable = true;
font = {
name = config.homeModules.theme.fonts.regular.family;
name = config.ooknet.theme.fonts.regular.family;
size = 12;
};
theme = {

View file

@ -1,9 +1,9 @@
{ config, lib, ... }:
let
cfg = config.homeModules.theme.qt;
cfg = config.ooknet.theme.qt;
in
{
options.homeModules.theme.qt.enable = lib.mkEnableOption "Enable qt module";
options.ooknet.theme.qt.enable = lib.mkEnableOption "Enable qt module";
config = lib.mkIf cfg.enable {
qt = {

View file

@ -3,10 +3,10 @@ let
inherit (inputs.nix-colors.lib-contrib { inherit pkgs; }) nixWallpaperFromScheme;
inherit (lib) types mkDefault mkIf mkOption mkEnableOption;
cfg = config.homeModules.theme.wallpaper;
cfg = config.ooknet.theme.wallpaper;
in
{
options.homeModules.theme.wallpaper = {
options.ooknet.theme.wallpaper = {
enable = mkEnableOption "Enable wallpaper module";
path = mkOption {
type = types.path;
@ -16,7 +16,7 @@ in
};
config = mkIf cfg.enable {
homeModules.theme.wallpaper.path =
ooknet.theme.wallpaper.path =
let
largest = f: xs: builtins.head (builtins.sort (a: b: a > b) (map f xs));
largestWidth = largest (x: x.width) config.monitors;