Use lib.meta.getExe

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-25 20:16:42 +03:00
parent eaa63dd272
commit d9a3936d51
17 changed files with 141 additions and 133 deletions

View File

@@ -8,7 +8,7 @@
enable = true;
settings = {
"$mod" = "SUPER";
"$term" = "${pkgs.kitty}/bin/kitty";
"$term" = lib.meta.getExe pkgs.kitty;
bind = [
"$mod, Return, exec, $term"
@@ -103,14 +103,13 @@
fi
'';
theme.extraConfig = let name = "reload-hyprland"; in
"${pkgs.writeShellApplication {
inherit name;
theme.extraConfig = "${lib.meta.getExe (pkgs.writeShellApplication {
name = "reload-hyprland";
runtimeInputs = with pkgs; [ hyprland ];
text = ''
hyprctl reload
'';
}}/bin/${name} &";
})} &";
home.sessionVariables.NIXOS_OZONE_WL = "1";
};