refactor(home): homeModules -> ooknet
This commit is contained in:
		
							parent
							
								
									b81c929a0b
								
							
						
					
					
						commit
						1d1cb3092f
					
				
					 104 changed files with 214 additions and 255 deletions
				
			
		|  | @ -9,7 +9,7 @@ | |||
|     ./mimeApps | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.config = { | ||||
|   options.ooknet.config = { | ||||
|     nix.enable = lib.mkEnableOption "enable nix configuration module"; | ||||
|     home.enable = lib.mkEnableOption "enable home configuration module"; | ||||
|     userDirs.enable = lib.mkEnableOption "enable userDirs configuration module"; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.config.home; | ||||
|   cfg = config.ooknet.config.home; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.config.mimeApps; | ||||
|   cfg = config.ooknet.config.mimeApps; | ||||
| 
 | ||||
|   browser = ["${config.home.sessionVariables.BROWSER}.desktop"]; | ||||
|   zathura = ["org.pwmt.zethura.desktop.desktop"]; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, outputs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.config.nix; | ||||
|   cfg = config.ooknet.config.nix; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.config.userDirs; | ||||
|   cfg = config.ooknet.config.userDirs; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     # ./nvim | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.editor = { | ||||
|   options.ooknet.console.editor = { | ||||
|     helix = { | ||||
|       enable = lib.mkEnableOption "Enable helix text editor"; | ||||
|       default = lib.mkOption { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { inputs, config, pkgs, lib, ... }: | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.helix; | ||||
|   cfg = config.ooknet.console.editor.helix; | ||||
|   inherit (config) colorscheme; | ||||
| in | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { pkgs, lib, config, ... }:  | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.helix; | ||||
|   cfg = config.ooknet.console.editor.helix; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
| 
 | ||||
| let | ||||
|   inherit (config.colorscheme) palette; | ||||
|   cfg = config.homeModules.console.editor.nvim; | ||||
|   cfg = config.ooknet.console.editor.nvim; | ||||
| in | ||||
|    | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.nvim; | ||||
|   cfg = config.ooknet.console.editor.nvim; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|     ./lualine.nix | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.editor.nvim.plugins = { | ||||
|   options.ooknet.console.editor.nvim.plugins = { | ||||
|     indentBlankline = lib.mkOption { | ||||
|       type = lib.types.bool; | ||||
|       default = false; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.nvim.plugins; | ||||
|   cfg = config.ooknet.console.editor.nvim.plugins; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.nvim.plugins; | ||||
|   cfg = config.ooknet.console.editor.nvim.plugins; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.editor.nvim.plugins; | ||||
|   cfg = config.ooknet.console.editor.nvim.plugins; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -2,7 +2,7 @@ | |||
| 
 | ||||
| let | ||||
|   inherit (config.colorscheme) palette; | ||||
|   cfg = config.homeModules.console.editor.nvim; | ||||
|   cfg = config.ooknet.console.editor.nvim; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|     # ./ranger | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.fileManager = { | ||||
|   options.ooknet.console.fileManager = { | ||||
|     lf = { | ||||
|       enable = lib.mkEnableOption "Enable lf file manager"; | ||||
|       default = lib.mkOption { | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
| #     - ripdrag support | ||||
| #     - color parity with eza | ||||
| let | ||||
|  cfg = config.homeModules.console.fileManager.lf; | ||||
|  cfg = config.ooknet.console.fileManager.lf; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     ./tmux | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.multiplexer = { | ||||
|   options.ooknet.console.multiplexer = { | ||||
|     zellij = { | ||||
|       enable = lib.mkEnableOption "Enable zellij multiplexer"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.multiplexer.tmux; | ||||
|   cfg = config.ooknet.console.multiplexer.tmux; | ||||
|   inherit (config.colorscheme) palette; | ||||
| in | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| let | ||||
|   inherit (config.colorscheme) palette; | ||||
|   cfg = config.homeModules.console.multiplexer.zellij; | ||||
|   cfg = config.ooknet.console.multiplexer.zellij; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,12 +1,5 @@ | |||
| { lib, ... }: | ||||
| { | ||||
|   imports = [ | ||||
|     ./starship | ||||
|     ./starship.nix | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.prompt = { | ||||
|     starship = { | ||||
|       enable = lib.mkEnableOption "Enable starship prompt"; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										77
									
								
								home/modules/console/prompt/starship.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										77
									
								
								home/modules/console/prompt/starship.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,77 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.ooknet.console.prompt.starship; | ||||
|   inherit (lib) concatStrings mkEnableOption mkIf; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   options.ooknet.console.prompt.starship.enable = mkEnableOption ""; | ||||
|   config = mkIf cfg.enable { | ||||
|     programs.starship = { | ||||
|       enable = true; | ||||
|       settings = { | ||||
|         format = concatStrings [ | ||||
|           "$username" | ||||
|           "$hostname" | ||||
|           "$nix_shell" | ||||
|           "$shlvl" | ||||
|           "$directory" | ||||
|           "$git_branch" | ||||
|           "$git_commit" | ||||
|           "$git_state" | ||||
|           "$git_status" | ||||
|           "$jobs" | ||||
|           "$character" | ||||
|         ]; | ||||
| 
 | ||||
|         directory = { | ||||
|           truncation_length = 0; | ||||
|           truncate_to_repo = true; | ||||
|         }; | ||||
| 
 | ||||
|         fill = { | ||||
|           symbol = " "; | ||||
|           disabled = false; | ||||
|         }; | ||||
| 
 | ||||
|         character = { | ||||
|           error_symbol = "[](bold red)"; | ||||
|           success_symbol = "[](bold green)"; | ||||
|           vimcmd_symbol = "[](bold yellow)"; | ||||
|           vimcmd_visual_symbol = "[](bold cyan)"; | ||||
|           vimcmd_replace_symbol = "[](bold purple)"; | ||||
|           vimcmd_replace_one_symbol = "[](bold purple)"; | ||||
|         }; | ||||
| 
 | ||||
|         aws.symbol = "  "; | ||||
|         conda.symbol = " "; | ||||
|         dart.symbol = " "; | ||||
|         directory.read_only = " "; | ||||
|         docker_context.symbol = " "; | ||||
|         elixir.symbol = " "; | ||||
|         elm.symbol = " "; | ||||
|         gcloud.symbol = " "; | ||||
|         git_branch.symbol = " "; | ||||
|         golang.symbol = " "; | ||||
|         hg_branch.symbol = " "; | ||||
|         java.symbol = " "; | ||||
|         julia.symbol = " "; | ||||
|         memory_usage.symbol = " "; | ||||
|         nim.symbol = " "; | ||||
|         nodejs.symbol = " "; | ||||
|         package.symbol = " "; | ||||
|         perl.symbol = " "; | ||||
|         php.symbol = " "; | ||||
|         python.symbol = " "; | ||||
|         ruby.symbol = " "; | ||||
|         rust.symbol = " "; | ||||
|         scala.symbol = " "; | ||||
|         shlvl.symbol = ""; | ||||
|         swift.symbol = " "; | ||||
|         terraform.symbol = ""; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
|  | @ -1,110 +0,0 @@ | |||
| { config, lib, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.prompt.starship; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     programs.starship = { | ||||
|       enable = true; | ||||
|       settings = { | ||||
|         format = | ||||
|           let | ||||
|             git = "$git_branch$git_commit$git_state$git_status"; | ||||
|             cloud = "$aws$gcloud$openstack"; | ||||
|           in | ||||
|           '' | ||||
|             ($nix_shell)$directory(${git})(- ${cloud})$jobs$character | ||||
|           ''; | ||||
| 
 | ||||
|         fill = { | ||||
|           symbol = " "; | ||||
|           disabled = false; | ||||
|         }; | ||||
| 
 | ||||
|         # Core | ||||
|         username = { | ||||
|           format = "[$user]($style)"; | ||||
|           show_always = true; | ||||
|         }; | ||||
|         hostname = { | ||||
|           format = "[@$hostname]($style) "; | ||||
|           ssh_only = false; | ||||
|           style = "bold green"; | ||||
|         }; | ||||
|         shlvl = { | ||||
|           format = "[$shlvl]($style) "; | ||||
|           style = "bold cyan"; | ||||
|           threshold = 2; | ||||
|           repeat = true; | ||||
|           disabled = false; | ||||
|         }; | ||||
|         cmd_duration = { | ||||
|           format = "took [$duration]($style) "; | ||||
|         }; | ||||
| 
 | ||||
|         directory = { | ||||
|           format = "[$path]($style)( [$read_only]($read_only_style)) "; | ||||
|         }; | ||||
|         nix_shell = { | ||||
|           format = "[($name \\(develop\\) <- )$symbol]($style) "; | ||||
|           impure_msg = ""; | ||||
|           symbol = " "; | ||||
|           style = "bold red"; | ||||
|         }; | ||||
| 
 | ||||
|         character = { | ||||
|           error_symbol = "[](bold red)"; | ||||
|           success_symbol = "[](bold green)"; | ||||
|           vimcmd_symbol = "[](bold yellow)"; | ||||
|           vimcmd_visual_symbol = "[](bold cyan)"; | ||||
|           vimcmd_replace_symbol = "[](bold purple)"; | ||||
|           vimcmd_replace_one_symbol = "[](bold purple)"; | ||||
|         }; | ||||
| 
 | ||||
|         time = { | ||||
|           format = "\\\[[$time]($style)\\\]"; | ||||
|           disabled = false; | ||||
|         }; | ||||
| 
 | ||||
|         # Cloud | ||||
|         gcloud = { | ||||
|           format = "on [$symbol$active(/$project)(\\($region\\))]($style)"; | ||||
|         }; | ||||
|         aws = { | ||||
|           format = "on [$symbol$profile(\\($region\\))]($style)"; | ||||
|         }; | ||||
| 
 | ||||
|         # Icon changes only \/ | ||||
|         aws.symbol = "  "; | ||||
|         conda.symbol = " "; | ||||
|         dart.symbol = " "; | ||||
|         directory.read_only = " "; | ||||
|         docker_context.symbol = " "; | ||||
|         elixir.symbol = " "; | ||||
|         elm.symbol = " "; | ||||
|         gcloud.symbol = " "; | ||||
|         git_branch.symbol = " "; | ||||
|         golang.symbol = " "; | ||||
|         hg_branch.symbol = " "; | ||||
|         java.symbol = " "; | ||||
|         julia.symbol = " "; | ||||
|         memory_usage.symbol = " "; | ||||
|         nim.symbol = " "; | ||||
|         nodejs.symbol = " "; | ||||
|         package.symbol = " "; | ||||
|         perl.symbol = " "; | ||||
|         php.symbol = " "; | ||||
|         python.symbol = " "; | ||||
|         ruby.symbol = " "; | ||||
|         rust.symbol = " "; | ||||
|         scala.symbol = " "; | ||||
|         shlvl.symbol = ""; | ||||
|         swift.symbol = " "; | ||||
|         terraform.symbol = ""; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
| 
 | ||||
|  | @ -1,6 +1,6 @@ | |||
| { config, lib, ... }: | ||||
| let | ||||
|   cfg = config.homeModules.console.shell.bash; | ||||
|   cfg = config.ooknet.console.shell.bash; | ||||
| in | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     ./zsh | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.shell = { | ||||
|   options.ooknet.console.shell = { | ||||
|     fish = { | ||||
|       enable = lib.mkEnableOption "Enable fish configuration"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { lib, config, ... }: | ||||
| let | ||||
|   cfg = config.homeModules.console.shell.fish; | ||||
|   cfg = config.ooknet.console.shell.fish; | ||||
|   inherit (lib) mkIf; | ||||
|   hasPackage = pname: lib.any (p: p ? pname && p.pname == pname) config.home.packages; | ||||
|   hasEza = hasPackage "eza"; | ||||
|  |  | |||
|  | @ -2,11 +2,11 @@ | |||
| 
 | ||||
| let | ||||
|   inherit (lib) mkIf mkEnableOption; | ||||
|   cfg = config.homeModules.console.shell.zsh; | ||||
|   cfg = config.ooknet.console.shell.zsh; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|   options.homeModules.console.shell.zsh.enable = mkEnableOption ""; | ||||
|   options.ooknet.console.shell.zsh.enable = mkEnableOption ""; | ||||
| 
 | ||||
|   config = mkIf cfg.enable { | ||||
|     programs.zsh = { | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|     ./ssh | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.console.utility = { | ||||
|   options.ooknet.console.utility = { | ||||
|     nixIndex = { | ||||
|       enable = lib.mkEnableOption "Enable nixIndex configuration"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { pkgs, config, lib, ... }: | ||||
|   let  | ||||
|     cfg = config.homeModules.console.utility.git; | ||||
|     cfg = config.ooknet.console.utility.git; | ||||
|   in | ||||
| {  | ||||
|   config = lib.mkIf cfg.enable { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { pkgs, config, lib, ... }: | ||||
| let | ||||
|   cfg = config.homeModules.console.utility.nixIndex; | ||||
|   cfg = config.ooknet.console.utility.nixIndex; | ||||
|   update-script = pkgs.writeShellApplication { | ||||
|     name = "fetch-nix-index-database"; | ||||
|     runtimeInputs = with pkgs; [ wget coreutils ]; | ||||
|  |  | |||
|  | @ -1,8 +1,8 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.console.utility.ssh; | ||||
|   hasFish = mkIf config.homeModules.console.shell.fish.enable; | ||||
|   cfg = config.ooknet.console.utility.ssh; | ||||
|   hasFish = mkIf config.ooknet.console.shell.fish.enable; | ||||
|   inherit (lib) mkIf; | ||||
| in | ||||
| 
 | ||||
|  | @ -16,9 +16,8 @@ in | |||
|             IdentityAgent "~/.1password/agent.sock" | ||||
|       ''; | ||||
|     }; | ||||
|     programs.fish.interactiveShellInit = hasFish '' | ||||
|     programs.fish.interactiveShellInit = hasFish /* fish */ '' | ||||
|       set -gx SSH_AUTH_SOCK ~/.1password/agent.sock | ||||
|     ''; | ||||
|   }; | ||||
|    | ||||
| } | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { pkgs, lib, config, ... }: | ||||
| let | ||||
|   cfg = config.homeModules.console.utility.tools; | ||||
|   cfg = config.ooknet.console.utility.tools; | ||||
| in | ||||
| { | ||||
|   config = lib.mkIf cfg.enable { | ||||
|  | @ -61,7 +61,7 @@ in | |||
|       }; | ||||
|       fzf = { | ||||
|         enable = true; | ||||
|         enableFishIntegration = lib.mkIf config.homeModules.console.shell.fish.enable true; | ||||
|         enableFishIntegration = lib.mkIf config.ooknet.console.shell.fish.enable true; | ||||
|         defaultCommand = "rg --files --hidden"; | ||||
|         changeDirWidgetOptions = [ | ||||
|           "--preview 'eza --icons -L 3 -T --color always {} | head -200'" | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
|  | @ -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 | ||||
| { | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 ]; | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 ]; | ||||
|   }; | ||||
|  |  | |||
|  | @ -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 ]; | ||||
|   }; | ||||
|  |  | |||
|  | @ -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; [ | ||||
|  |  | |||
|  | @ -8,7 +8,7 @@ | |||
|     ./bottles | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.gaming = { | ||||
|   options.ooknet.desktop.gaming = { | ||||
|     factorio = { | ||||
|       enable = lib.mkEnableOption "Enable factorio home module"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg=config.homeModules.desktop.gaming.factorio; | ||||
|   cfg=config.ooknet.desktop.gaming.factorio; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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; [ | ||||
|  |  | |||
|  | @ -4,7 +4,7 @@ | |||
|     ./imv | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.media.image = { | ||||
|   options.ooknet.desktop.media.image = { | ||||
|     imv = { | ||||
|       enable = lib.mkEnableOption "Enable imv image viewer"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     ./tui | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.media.music = { | ||||
|   options.ooknet.desktop.media.music = { | ||||
|     tui = { | ||||
|       enable = lib.mkEnableOption "Enable tui music"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     ./mpv | ||||
|   ]; | ||||
|    | ||||
|   options.homeModules.desktop.media.video = { | ||||
|   options.ooknet.desktop.media.video = { | ||||
|     mpv = { | ||||
|       enable = lib.mkEnableOption "Enable mpv video player"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.media.video.mpv; | ||||
|   cfg = config.ooknet.desktop.media.video.mpv; | ||||
| in | ||||
| { | ||||
|   config = { | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|     ./office | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.productivity = { | ||||
|   options.ooknet.desktop.productivity = { | ||||
|     obsidian = { | ||||
|       enable = lib.mkEnableOption "enable obsidian home module"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.productivity.obsidian; | ||||
|   cfg = config.ooknet.desktop.productivity.obsidian; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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 ]; | ||||
|   }; | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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"; | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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 | ||||
| { | ||||
| 
 | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, inputs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.bar.ags; | ||||
|   cfg = config.ooknet.desktop.wayland.bar.ags; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     ./waybar | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.wayland.bar = { | ||||
|   options.ooknet.desktop.wayland.bar = { | ||||
|     eww = { | ||||
|       enable = lib.mkEnableOption "Enable Eww bar"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { config, lib, inputs, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.launcher.anyrun; | ||||
|   cfg = config.ooknet.desktop.wayland.launcher.anyrun; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|     ./tofi | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.wayland.launcher = { | ||||
|   options.ooknet.desktop.wayland.launcher = { | ||||
|     anyrun = { | ||||
|       enable = lib.mkEnableOption "enable anyrun launcher module"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -7,7 +7,7 @@ | |||
|     ./hyprlock | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.wayland.lockscreen = { | ||||
|   options.ooknet.desktop.wayland.lockscreen = { | ||||
|     swaylock = { | ||||
|       enable = lib.mkEnableOption "Enable Swaylock screen"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
|  |  | |||
|  | @ -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 { | ||||
|  |  | |||
|  | @ -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"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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  = { | ||||
|  |  | |||
|  | @ -6,7 +6,7 @@ | |||
|     ./tools | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.wayland.utility = { | ||||
|   options.ooknet.desktop.wayland.utility = { | ||||
|     tools = { | ||||
|       enable = lib.mkEnableOption "Enable wayland specific tools"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.utility.gammastep; | ||||
|   cfg = config.ooknet.desktop.wayland.utility.gammastep; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.utility.tools; | ||||
|   cfg = config.ooknet.desktop.wayland.utility.tools; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -5,7 +5,7 @@ | |||
|     ./hyprland | ||||
|   ]; | ||||
| 
 | ||||
|   options.homeModules.desktop.wayland.windowManager = {  | ||||
|   options.ooknet.desktop.wayland.windowManager = {  | ||||
|     hyprland = { | ||||
|       enable = lib.mkEnableOption "Enable Hyprland window-manager"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -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"; | ||||
|     }; | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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 | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, pkgs, ... }:  | ||||
| 
 | ||||
| let | ||||
|     cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|     cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { config, lib, pkgs, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -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 | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,7 +1,7 @@ | |||
| { lib, config, ... }: | ||||
| 
 | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| 
 | ||||
| { | ||||
|  |  | |||
|  | @ -1,6 +1,6 @@ | |||
| { lib, config, ... }: | ||||
| let | ||||
|   cfg = config.homeModules.desktop.wayland.windowManager.hyprland; | ||||
|   cfg = config.ooknet.desktop.wayland.windowManager.hyprland; | ||||
| in | ||||
| { | ||||
|   config = { | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
|  | @ -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"; | ||||
|  |  | |||
|  | @ -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 = { | ||||
|  |  | |||
|  | @ -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 = { | ||||
|  |  | |||
|  | @ -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; | ||||
|  |  | |||
|  | @ -12,7 +12,7 @@ in | |||
| 
 | ||||
|     systemd.user.startServices = mkDefault "sd-switch"; | ||||
| 
 | ||||
|     homeModules = { | ||||
|     ooknet = { | ||||
|       config = { | ||||
|         home.enable = true; | ||||
|         userDirs.enable = true; | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ in | |||
|   ]; | ||||
|    | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     homeModules.desktop = { | ||||
|     ooknet.desktop = { | ||||
|       gaming = { | ||||
|         lutris.enable = false; | ||||
|       }; | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ in | |||
|   ]; | ||||
|    | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     homeModules.desktop = { | ||||
|     ooknet.desktop = { | ||||
| 
 | ||||
|       wayland = { | ||||
|         enable = true; | ||||
|  |  | |||
|  | @ -9,7 +9,7 @@ in | |||
|   ]; | ||||
|    | ||||
|   config = lib.mkIf cfg.enable { | ||||
|     homeModules.desktop = { | ||||
|     ooknet.desktop = { | ||||
|       productivity = { | ||||
|         obsidian.enable = true; | ||||
|         zathura.enable = true; | ||||
|  |  | |||
|  | @ -13,7 +13,7 @@ in | |||
|     home.file.".colorscheme".text = config.colorscheme.slug; | ||||
|     home.sessionVariables.COLOR_SCHEME = "${config.colorscheme.slug}"; | ||||
| 
 | ||||
|     homeModules.theme = { | ||||
|     ooknet.theme = { | ||||
|       fonts.enable = true; | ||||
|       fonts.regular = { | ||||
|         family = "Fira Sans"; | ||||
|  |  | |||
Some files were not shown because too many files have changed in this diff Show more
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue