remove lazy launching

This commit is contained in:
Noa Aarts 2024-04-09 14:37:32 +02:00
parent af544de7fe
commit e7c4625437
2 changed files with 0 additions and 18 deletions

View file

@ -32,7 +32,6 @@
modules = { modules = {
hyprland.enable = true; hyprland.enable = true;
wofi.lazy = false;
}; };
# The home.packages option allows you to install Nix packages into your # The home.packages option allows you to install Nix packages into your
@ -48,8 +47,6 @@
obs-studio obs-studio
wayvnc wayvnc
(lib.mkIf (!config.modules.wofi.lazy) steam-run)
btop btop
dconf dconf

View file

@ -5,27 +5,12 @@ in
{ {
options.modules.wofi = { options.modules.wofi = {
enable = lib.mkEnableOption "enable wofi app launcher"; enable = lib.mkEnableOption "enable wofi app launcher";
lazy = lib.mkEnableOption "enable lazy desktop entries";
}; };
imports = [ imports = [
../common/colors.nix ../common/colors.nix
]; ];
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
home.packages = with pkgs; [ home.packages = with pkgs; [
(lib.mkIf cfg.lazy inputs.lazy.packages.${pkgs.system}.lazy-desktop)
(lib.mkIf cfg.lazy (writeShellApplication {
name = "lo";
runtimeInputs = [ xdg-utils ];
text = ''
echo "opening $*"
xdg-open "$*"
'';
}))
(lib.mkIf cfg.lazy (writeShellApplication {
name = "mt";
runtimeInputs = [ xdg-utils ];
text = ''xdg-mime query filetype "$@"'';
}))
(writeShellScriptBin "wofi-launch" '' (writeShellScriptBin "wofi-launch" ''
${wofi}/bin/wofi --show drun ${wofi}/bin/wofi --show drun
'') '')