flatpak: added support for redis

This commit is contained in:
Tigor Hutasuhut 2024-10-15 08:25:08 +07:00
parent ed60032f75
commit 1767610c7c
6 changed files with 21 additions and 1 deletions

View file

@ -23,6 +23,7 @@
./nnn.nix
./node.nix
./obsidian.nix
./redis.nix
./slack.nix
./spotify.nix
./starship.nix

12
home/programs/redis.nix Normal file
View file

@ -0,0 +1,12 @@
{ config, lib, pkgs, ... }:
let
cfg = config.profile.services.redis;
inherit (lib) mkIf;
in
lib.mkMerge [
(mkIf cfg.client.cli.enable {
home.packages = [
pkgs.redis
];
})
]

View file

@ -6,5 +6,6 @@ in
options.profile.flatpak = {
enable = mkEnableOption "flatpak";
zen-browser.enable = mkEnableOption "zen-browser";
redisinsight.enable = mkEnableOption "redisinsight";
};
}

View file

@ -35,6 +35,10 @@ in
};
};
redis = {
client.cli.enable = mkEnableOption "redis cli client";
};
couchdb.enable = mkEnableOption "couchdb";
telemetry = {

View file

@ -82,6 +82,7 @@ in
flatpak = {
enable = true;
zen-browser.enable = true;
redisinsight.enable = true;
};
microsoft-edge.enable = true;

View file

@ -13,7 +13,8 @@ in
onCalendar = "weekly"; # Default value
};
packages = [ ]
++ optional cfg.zen-browser.enable "io.github.zen_browser.zen";
++ optional cfg.zen-browser.enable "io.github.zen_browser.zen"
++ optional cfg.redisinsight.enable "com.redis.RedisInsight";
};
};
}