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 ./nnn.nix
./node.nix ./node.nix
./obsidian.nix ./obsidian.nix
./redis.nix
./slack.nix ./slack.nix
./spotify.nix ./spotify.nix
./starship.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 = { options.profile.flatpak = {
enable = mkEnableOption "flatpak"; enable = mkEnableOption "flatpak";
zen-browser.enable = mkEnableOption "zen-browser"; 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"; couchdb.enable = mkEnableOption "couchdb";
telemetry = { telemetry = {

View file

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

View file

@ -13,7 +13,8 @@ in
onCalendar = "weekly"; # Default value onCalendar = "weekly"; # Default value
}; };
packages = [ ] 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";
}; };
}; };
} }