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
38 lines
692 B
Nix
38 lines
692 B
Nix
{
|
|
pkgs,
|
|
config,
|
|
lib,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.youthlic.programs.niri;
|
|
in
|
|
{
|
|
options = {
|
|
youthlic.programs.niri = {
|
|
enable = lib.mkEnableOption "niri";
|
|
config = lib.mkOption {
|
|
type = lib.types.path;
|
|
example = ./config.kdl;
|
|
description = ''
|
|
the pach to config.kdl
|
|
'';
|
|
};
|
|
};
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
home.packages = with pkgs; [
|
|
swaynotificationcenter
|
|
swaybg
|
|
xwayland-satellite
|
|
];
|
|
youthlic.programs = {
|
|
fuzzel.enable = true;
|
|
wluma.enable = true;
|
|
waybar.enable = true;
|
|
};
|
|
programs.niri = {
|
|
config = builtins.readFile cfg.config;
|
|
};
|
|
};
|
|
}
|