Add options for enabling launcher programs

This commit is contained in:
ItsDrike 2024-06-10 20:06:57 +02:00
parent 705ef3451a
commit 739d5019d3
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0
5 changed files with 61 additions and 21 deletions

View file

@ -1,13 +1,20 @@
{
osConfig,
pkgs,
lib,
...
}: {
home.packages = with pkgs; [
walker
];
}: let
inherit (lib) mkIf;
cfg = osConfig.myOptions.programs.launchers.walker;
in: {
config = mkIf cfg.enable {
home.packages = with pkgs; [
walker
];
xdg.configFile = {
"walker/config.json".source = ./config.json;
"walker/style.css".source = ./style.css;
xdg.configFile = {
"walker/config.json".source = ./config.json;
"walker/style.css".source = ./style.css;
};
};
}

View file

@ -1,17 +1,26 @@
_: {
programs.wofi = {
enable = true;
settings = {
width = "40%";
height = "30%";
show = "drun";
prompt = "Search";
allow_images = true;
allow_markup = true;
insensitive = true;
{
osConfig,
lib,
...
}: let
inherit (lib) mkIf;
cfg = osConfig.myOptions.programs.launchers.wofi;
in: {
config = mkIf cfg.enable {
programs.wofi = {
enable = true;
settings = {
width = "40%";
height = "30%";
show = "drun";
prompt = "Search";
allow_images = true;
allow_markup = true;
insensitive = true;
};
style = ''
${builtins.readFile ./style.css}
'';
};
style = ''
${builtins.readFile ./style.css}
'';
};
}