setup sway vm

This commit is contained in:
tristan 2024-01-06 22:35:25 +00:00
parent e67707b0f0
commit 35fa5b6bda
10 changed files with 118 additions and 111 deletions

View file

@ -7,6 +7,7 @@
cfg = config.programs.menu;
terminal = config.programs.terminal;
termcmd = "${terminal}/bin/${terminal.pname}";
menucmd = "${config.programs.menu.package}${config.programs.menu.drunCommand}";
in {
options.programs = with lib; {
menu = {
@ -17,6 +18,9 @@ in {
default = "/bin/wofi --show dmenu";
example = "/bin/dmenu";
};
drunCommand = mkOption {
default = "/bin/wofi --show drun";
};
};
};
@ -29,6 +33,8 @@ in {
};
};
wayland.windowManager.sway.config.menu = menucmd;
home.packages = [cfg.package];
};
}