mysql apps and again with the cleanup script

This commit is contained in:
cnst
2024-09-15 12:19:05 +02:00
parent cbee16340d
commit f02af4bd69
10 changed files with 124 additions and 98 deletions

View File

@@ -14,6 +14,8 @@
"${systemModules}/studio/blender"
"${systemModules}/studio/gimp"
"${systemModules}/studio/inkscape"
"${systemModules}/studio/beekeeper"
"${systemModules}/studio/mysql-workbench"
"${systemModules}/sysd/network/blueman"
"${systemModules}/sysd/network/mullvad"
"${systemModules}/sysd/network/samba"

View File

@@ -0,0 +1,18 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.studio.beekeeper;
in {
options = {
modules.studio.beekeeper.enable = mkEnableOption "Enables Beekeeper Studio";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
beekeeper-studio
];
};
}

View File

@@ -0,0 +1,18 @@
{
pkgs,
config,
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
cfg = config.modules.studio.mysql-workbench;
in {
options = {
modules.studio.mysql-workbench.enable = mkEnableOption "Enables MySQL Workbench";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [
mysql-workbench
];
};
}

View File

@@ -4,20 +4,33 @@
lib,
...
}: let
inherit (lib) mkIf mkEnableOption;
inherit (lib) mkIf mkEnableOption mkOption mkMerge;
cfg = config.modules.utils.misc;
in {
options = {
modules.utils.misc.enable = mkEnableOption "Enables miscellaneous pacakges";
modules.utils.misc = {
enable = mkEnableOption "Enables miscellaneous packages";
desktop.enable = mkOption {
type = lib.types.bool;
default = false;
description = "Whether to install desktop-specific packages.";
};
};
};
config = mkIf cfg.enable {
environment.systemPackages = [
pkgs.nodejs_22
pkgs.ripgrep
pkgs.fd
pkgs.beekeeper-studio
pkgs.gnused
pkgs.tree
environment.systemPackages = mkMerge [
[
pkgs.nodejs_22
pkgs.ripgrep
pkgs.fd
pkgs.gnused
pkgs.tree
]
(mkIf cfg.desktop.enable [
pkgs.protonup
pkgs.winetricks
])
];
};
}