Update config and option names for modules

This commit is contained in:
Oliver Davies 2025-04-30 03:09:17 +01:00
parent fe508bd127
commit bb9b77e2f8
54 changed files with 122 additions and 120 deletions

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.bluetuith;
cfg = config.features.cli.bluetuith;
in
{
options.homeManagerModules.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
options.features.cli.bluetuith.enable = mkEnableOption "Enable bluetuith";
config = mkIf cfg.enable {
home.packages = with pkgs; [

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.direnv;
cfg = config.features.cli.direnv;
in
{
options.homeManagerModules.cli.direnv.enable = mkEnableOption "Enable direnv";
options.features.cli.direnv.enable = mkEnableOption "Enable direnv";
config = mkIf cfg.enable {
programs.direnv = {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.fzf;
cfg = config.features.cli.fzf;
in
{
options.homeManagerModules.cli.fzf.enable = mkEnableOption "Enable fzf";
options.features.cli.fzf.enable = mkEnableOption "Enable fzf";
config = mkIf cfg.enable {
programs.fzf = {

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.git;
cfg = config.features.cli.git;
in
{
options.homeManagerModules.cli.git = {
options.features.cli.git = {
enable = mkEnableOption "Enable git";
user = mkOption {

View file

@ -3,12 +3,12 @@
with lib;
let
cfg = config.homeManagerModules.cli.node;
cfg = config.features.cli.node;
inherit (config.xdg) configHome dataHome stateHome;
in
{
options.homeManagerModules.cli.node.enable = mkEnableOption "Enable node";
options.features.cli.node.enable = mkEnableOption "Enable node";
config = mkIf cfg.enable {
xdg.configFile."${config.home.sessionVariables.NPM_CONFIG_USERCONFIG}".text = ''

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.notes;
cfg = config.features.cli.notes;
in
{
options.homeManagerModules.cli.notes.enable = mkEnableOption "Enable notes";
options.features.cli.notes.enable = mkEnableOption "Enable notes";
config = mkIf cfg.enable {
xdg = {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.ranger;
cfg = config.features.cli.ranger;
in
{
options.homeManagerModules.cli.ranger.enable = mkEnableOption "Enable ranger";
options.features.cli.ranger.enable = mkEnableOption "Enable ranger";
config = mkIf cfg.enable {
programs.ranger.enable = true;

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.starship;
cfg = config.features.cli.starship;
in
{
options.homeManagerModules.cli.starship.enable = mkEnableOption "Enable starship";
options.features.cli.starship.enable = mkEnableOption "Enable starship";
config = mkIf cfg.enable {
programs.starship =

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.tmux-sessionizer;
cfg = config.features.cli.tmux-sessionizer;
in
{
options.homeManagerModules.cli.tmux-sessionizer = {
options.features.cli.tmux-sessionizer = {
enable = mkEnableOption "Enable tmux-sessionizer";
directories = mkOption {

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.tmux;
cfg = config.features.cli.tmux;
in
{
options.homeManagerModules.cli.tmux.enable = mkEnableOption "Enable tmux";
options.features.cli.tmux.enable = mkEnableOption "Enable tmux";
config = mkIf cfg.enable {
programs.tmux = {

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.cli.zsh;
cfg = config.features.cli.zsh;
in
{
options.homeManagerModules.cli.zsh.enable = mkEnableOption "Enable zsh";
options.features.cli.zsh.enable = mkEnableOption "Enable zsh";
config = mkIf cfg.enable {
programs.zsh = {

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.coding.neovim;
cfg = config.features.coding.neovim;
in
{
options.homeManagerModules.coding.neovim.enable = mkEnableOption "Enable neovim";
options.features.coding.neovim.enable = mkEnableOption "Enable neovim";
config = mkIf cfg.enable {
programs.neovim =

View file

@ -6,10 +6,10 @@
}:
let
cfg = config.homeManagerModules.coding.phpactor;
cfg = config.features.coding.phpactor;
in
{
options.homeManagerModules.coding.phpactor.enable = lib.mkEnableOption "Enable phpactor";
options.features.coding.phpactor.enable = lib.mkEnableOption "Enable phpactor";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.desktop.browsers.firefox;
cfg = config.features.desktop.browsers.firefox;
in
{
options.homeManagerModules.desktop.browsers.firefox = {
options.features.desktop.browsers.firefox = {
enable = mkEnableOption "Enable firefox";
homepageUrl = mkOption {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.homeManagerModules.desktop.browsers.qutebrowser;
cfg = config.features.desktop.browsers.qutebrowser;
in
{
options.homeManagerModules.desktop.browsers.qutebrowser.enable =
options.features.desktop.browsers.qutebrowser.enable =
mkEnableOption "Enable qutebrowser";
config = mkIf cfg.enable {

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.homeManagerModules.desktop.flameshot;
cfg = config.features.desktop.flameshot;
in
{
options.homeManagerModules.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
options.features.desktop.flameshot.enable = mkEnableOption "Enable flameshot";
config = mkIf cfg.enable {
services.flameshot = {

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.desktop.gtk;
cfg = config.features.desktop.gtk;
in
{
options.homeManagerModules.desktop.gtk.enable = mkEnableOption "Enable gtk";
options.features.desktop.gtk.enable = mkEnableOption "Enable gtk";
config = mkIf cfg.enable {
gtk = with pkgs; {

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.desktop.media.handbrake;
cfg = config.features.desktop.media.handbrake;
in
{
options.homeManagerModules.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
options.features.desktop.media.handbrake.enable = mkEnableOption "Enable handbrake";
config = mkIf cfg.enable {
home.packages = with pkgs; [

View file

@ -8,10 +8,10 @@
with lib;
let
cfg = config.homeManagerModules.desktop.media.makemkv;
cfg = config.features.desktop.media.makemkv;
in
{
options.homeManagerModules.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
options.features.desktop.media.makemkv.enable = mkEnableOption "Enable makemkv";
config = mkIf cfg.enable {
home.packages = with pkgs; [

View file

@ -3,10 +3,10 @@
with lib;
let
cfg = config.homeManagerModules.desktop.media.mpv;
cfg = config.features.desktop.media.mpv;
in
{
options.homeManagerModules.desktop.media.mpv.enable = mkEnableOption "Enable mpv";
options.features.desktop.media.mpv.enable = mkEnableOption "Enable mpv";
config = mkIf cfg.enable {
programs.mpv = {