change notification app for niri from mako to swaync add deno as json/jsonc formatter in helix add wluma to control backlight add taplo as toml formatter refactor waybar, and use waybar default config change gpg pinentry to shell script which can determine which session type is used fix error when SSH_CLIENT is unbind in pinentry script fix pinentry selector in pkgs
33 lines
570 B
Nix
33 lines
570 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.youthlic.programs.waybar;
|
|
in
|
|
{
|
|
options = {
|
|
youthlic.programs.waybar = {
|
|
enable = lib.mkEnableOption "waybar";
|
|
configDir = lib.mkOption {
|
|
type = lib.types.path;
|
|
example = ./config;
|
|
description = ''
|
|
path to waybar config dir
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
waybar
|
|
];
|
|
xdg.configFile."waybar" = {
|
|
enable = true;
|
|
source = cfg.configDir;
|
|
recursive = true;
|
|
};
|
|
};
|
|
}
|