mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 04:19:19 -08:00
[YUKARI] Initialise
This commit is contained in:
parent
572dd0e4db
commit
aa266cc383
28 changed files with 877 additions and 614 deletions
|
|
@ -1,34 +0,0 @@
|
|||
{ config, lib, pkgs, ... }: let
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.options) mkOption mkEnableOption;
|
||||
inherit (lib.types) attrsOf unspecified;
|
||||
inherit (lib.generators) toKeyValue;
|
||||
cfg = config.programs.wofi;
|
||||
in {
|
||||
options.programs.wofi = {
|
||||
enable = mkEnableOption "wofi, an unmaintained launcher program for wlroots";
|
||||
package = mkOption {
|
||||
type = unspecified;
|
||||
default = pkgs.wofi;
|
||||
};
|
||||
exec = mkOption {
|
||||
internal = true;
|
||||
type = unspecified;
|
||||
default = "${cfg.package}/bin/wofi";
|
||||
};
|
||||
settings = mkOption {
|
||||
type = attrsOf unspecified;
|
||||
};
|
||||
};
|
||||
config = mkMerge [
|
||||
{
|
||||
programs.wofi.settings.term = config.wayland.windowManager.sway.config.terminal;
|
||||
}
|
||||
(mkIf cfg.enable {
|
||||
xdg.configFile."wofi/config" = {
|
||||
text = toKeyValue {} cfg.settings;
|
||||
};
|
||||
wayland.windowManager.sway.config.menu = "${pkgs.j4-dmenu-desktop}/bin/j4-dmenu-desktop --no-generic --dmenu=\"${cfg.exec}\" --term='${cfg.settings.term}'";
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue