Group app programs options

This commit is contained in:
ItsDrike 2024-06-21 11:41:29 +02:00
parent 92e0e85ee6
commit 874cbcec70
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
7 changed files with 23 additions and 18 deletions

View file

@ -6,7 +6,7 @@
}: let }: let
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.nomacs; cfg = osConfig.myOptions.home-manager.programs.applications.nomacs;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -6,7 +6,7 @@
}: let }: let
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.stremio; cfg = osConfig.myOptions.home-manager.programs.applications.stremio;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [

View file

@ -7,7 +7,7 @@
}: let }: let
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.spotify; cfg = osConfig.myOptions.home-manager.programs.applications.spotify;
spicePkgs = inputs.spicetify.packages.${pkgs.system}.default; spicePkgs = inputs.spicetify.packages.${pkgs.system}.default;
in { in {
imports = [inputs.spicetify.homeManagerModule]; imports = [inputs.spicetify.homeManagerModule];

View file

@ -6,7 +6,7 @@
}: let }: let
inherit (lib) mkIf; inherit (lib) mkIf;
cfg = osConfig.myOptions.home-manager.programs.vesktop; cfg = osConfig.myOptions.home-manager.programs.applications.vesktop;
in { in {
config = mkIf cfg.enable { config = mkIf cfg.enable {
home.packages = with pkgs; [ vesktop ]; home.packages = with pkgs; [ vesktop ];

View file

@ -101,8 +101,9 @@
mullvad-browser.enable = true; mullvad-browser.enable = true;
schizofox.enable = true; schizofox.enable = true;
}; };
applications = {
spotify.enable = true; spotify.enable = true;
};
}; };
}; };
}; };

View file

@ -166,13 +166,15 @@
fastfetch.enable = true; fastfetch.enable = true;
hyfetch.enable = true; hyfetch.enable = true;
}; };
spotify.enable = true; applications = {
stremio.enable = true; spotify.enable = true;
vesktop = { stremio.enable = true;
enable = true; vesktop = {
autoStart = true; enable = true;
autoStart = true;
};
nomacs.enable = true;
}; };
nomacs.enable = true;
}; };
}; };
}; };

View file

@ -26,13 +26,15 @@ in
schizofox.enable = mkEnableOption "Schizophrenic version of Firefox browser"; schizofox.enable = mkEnableOption "Schizophrenic version of Firefox browser";
}; };
spotify.enable = mkEnableOption "Spotify"; applications = {
stremio.enable = mkEnableOption "Stremio free media center"; spotify.enable = mkEnableOption "Spotify";
vesktop = { stremio.enable = mkEnableOption "Stremio free media center";
enable = mkEnableOption "Vesktop (An alternate client for Discord with Vencord built-in)"; vesktop = {
autoStart = mkEnableOption "Auto-Start for Vesktop"; enable = mkEnableOption "Vesktop (An alternate client for Discord with Vencord built-in)";
autoStart = mkEnableOption "Auto-Start for Vesktop";
};
nomacs.enable = mkEnableOption "Nomacs (Qt-based image viewer)";
}; };
nomacs.enable = mkEnableOption "Nomacs (Qt-based image viewer)";
tools = { tools = {
fastfetch.enable = mkEnableOption "FastFetch (fast neofetch)"; fastfetch.enable = mkEnableOption "FastFetch (fast neofetch)";