feat: Added stuff
Some checks failed
Flake checker / Build Nix targets (push) Has been cancelled

This commit is contained in:
uttarayan21
2025-08-14 19:27:36 +05:30
parent f8b96a5c84
commit fbc558f01e

View File

@@ -2,8 +2,7 @@
pkgs, pkgs,
lib, lib,
... ...
}: }: {
{
home.packages = with pkgs; [ home.packages = with pkgs; [
nixd nixd
nil nil
@@ -124,37 +123,44 @@
}; };
theme = "Catppuccin Mocha"; theme = "Catppuccin Mocha";
}; };
userTasks = [ userTasks = let
zed =
if pkgs.stdenv.isDarwin
then "zed"
else "${lib.getExe pkgs.zed-editor}";
tv = "${lib.getExe pkgs.television}";
yazi = "${lib.getExe pkgs.yazi}";
in [
{ {
label = "file_finder"; label = "file_finder";
command = "${lib.getExe pkgs.zed-editor} \"$(${lib.getExe pkgs.television} files)\""; command = "${zed} \"$(${tv} files)\"";
hide = "always"; hide = "always";
allow_concurrent_runs = true; allow_concurrent_runs = true;
use_new_terminal = true; use_new_terminal = true;
} }
{ {
label = "live_grep"; label = "live_grep";
command = "${lib.getExe pkgs.television} text | read -alz res; and ${lib.getExe pkgs.zed-editor} $res"; command = "${tv} text | read -alz res; and ${zed} $res";
hide = "always"; hide = "always";
allow_concurrent_runs = false; allow_concurrent_runs = false;
use_new_terminal = false; use_new_terminal = false;
shell = { shell = {
with_arguments = { with_arguments = {
program = "fish"; program = "fish";
args = [ "--no-config" ]; args = ["--no-config"];
}; };
}; };
} }
{ {
label = "file_manager"; label = "file_manager";
command = "${lib.getExe pkgs.yazi} --chooser-file /dev/stdout | read -alz res;and ${lib.getExe pkgs.zed-editor} $res"; command = "${yazi} --chooser-file /dev/stdout | read -alz res;and ${zed} $res";
hide = "always"; hide = "always";
allow_concurrent_runs = false; allow_concurrent_runs = false;
use_new_terminal = false; use_new_terminal = false;
shell = { shell = {
with_arguments = { with_arguments = {
program = "fish"; program = "fish";
args = [ "--no-config" ]; args = ["--no-config"];
}; };
}; };
} }