65 lines
1.1 KiB
Nix
65 lines
1.1 KiB
Nix
{
|
|
config,
|
|
pkgs,
|
|
inputs,
|
|
lib,
|
|
...
|
|
}:
|
|
|
|
{
|
|
options = {
|
|
apps.misc = {
|
|
obsidian.enable = lib.mkEnableOption "enable obsidian";
|
|
bitwarden.enable = lib.mkEnableOption "enable bitwarden";
|
|
blender.enable = lib.mkEnableOption "enable blender";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
environment.systemPackages =
|
|
with pkgs;
|
|
[
|
|
libsecret
|
|
gcr_4
|
|
pass
|
|
]
|
|
++ (
|
|
if (config.apps.misc.obsidian.enable) then
|
|
|
|
[ obsidian ]
|
|
else
|
|
[ ]
|
|
)
|
|
++ (
|
|
if (config.apps.misc.bitwarden.enable) then
|
|
|
|
[
|
|
rbw
|
|
pinentry-curses
|
|
]
|
|
++ (
|
|
if (config.desktop.shell.rofi.enable) then
|
|
[
|
|
rofi-rbw
|
|
]
|
|
else
|
|
[ ]
|
|
)
|
|
else
|
|
[ ]
|
|
)
|
|
++ (
|
|
if (config.apps.misc.blender.enable) then
|
|
|
|
[ blender ]
|
|
else
|
|
[ ]
|
|
);
|
|
programs = {
|
|
seahorse.enable = true;
|
|
};
|
|
services = {
|
|
gnome.gnome-keyring.enable = true;
|
|
};
|
|
};
|
|
}
|