feat: add database module
This commit is contained in:
@@ -18,6 +18,7 @@ in
|
|||||||
../../modules/bruno
|
../../modules/bruno
|
||||||
../../modules/cloud
|
../../modules/cloud
|
||||||
../../modules/comms
|
../../modules/comms
|
||||||
|
../../modules/database
|
||||||
../../modules/dconf
|
../../modules/dconf
|
||||||
../../modules/desktop/niri
|
../../modules/desktop/niri
|
||||||
../../modules/direnv
|
../../modules/direnv
|
||||||
@@ -100,6 +101,8 @@ in
|
|||||||
claude-code.enable = true;
|
claude-code.enable = true;
|
||||||
opencode.enable = true;
|
opencode.enable = true;
|
||||||
};
|
};
|
||||||
|
database.mssql.enable = true;
|
||||||
|
database.postgresql.enable = true;
|
||||||
github.enable = true;
|
github.enable = true;
|
||||||
gitlab.enable = true;
|
gitlab.enable = true;
|
||||||
pandoc.enable = true;
|
pandoc.enable = true;
|
||||||
|
|||||||
22
home/modules/database/default.nix
Normal file
22
home/modules/database/default.nix
Normal file
@@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
options.database = {
|
||||||
|
mssql.enable = lib.mkEnableOption "MSSQL";
|
||||||
|
postgresql.enable = lib.mkEnableOption "PostgreSQL";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkMerge [
|
||||||
|
(lib.mkIf config.database.mssql.enable {
|
||||||
|
home.packages = [ (config.nixgl.wrap pkgs.dbeaver-bin) ];
|
||||||
|
})
|
||||||
|
(lib.mkIf config.database.postgresql.enable {
|
||||||
|
home.packages = [ (config.nixgl.wrap pkgs.pgadmin4-desktopmode) ];
|
||||||
|
})
|
||||||
|
];
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user