feat: Added grafana other devices

This commit is contained in:
uttarayan21
2025-08-14 15:18:52 +05:30
parent e387716e16
commit ba40cc49eb
10 changed files with 298 additions and 803 deletions

View File

@@ -2,7 +2,8 @@
pkgs,
lib,
...
}: {
}:
{
home.packages = with pkgs; [
nixd
nil
@@ -43,6 +44,13 @@
reveal_target = "center";
}
];
"space f g" = [
"task::Spawn"
{
task_name = "file_manager";
reveal_target = "center";
}
];
};
}
{
@@ -119,21 +127,34 @@
userTasks = [
{
label = "file_finder";
command = "${lib.getExe pkgs.zed-editor} \"$(tv files)\"";
command = "${lib.getExe pkgs.zed-editor} \"$(${lib.getExe pkgs.television} files)\"";
hide = "always";
allow_concurrent_runs = true;
use_new_terminal = true;
}
{
label = "live_grep";
command = "tv text | read -alz res; and ${lib.getExe pkgs.zed-editor} $res";
command = "${lib.getExe pkgs.television} text | read -alz res; and ${lib.getExe pkgs.zed-editor} $res";
hide = "always";
allow_concurrent_runs = false;
use_new_terminal = false;
shell = {
with_arguments = {
program = "fish";
args = ["--no-config"];
args = [ "--no-config" ];
};
};
}
{
label = "file_manager";
command = "${lib.getExe pkgs.yazi} --chooser-file /dev/stdout | read -alz res;and ${lib.getExe pkgs.zed-editor} $res";
hide = "always";
allow_concurrent_runs = false;
use_new_terminal = false;
shell = {
with_arguments = {
program = "fish";
args = [ "--no-config" ];
};
};
}

View File

@@ -5,7 +5,8 @@
lib,
device,
...
}: {
}:
{
imports = [
inputs.nix-index-database.homeModules.nix-index
../modules
@@ -23,7 +24,9 @@
};
programs = {
home-manager = {enable = true;};
home-manager = {
enable = true;
};
};
fonts.fontconfig.enable = true;
@@ -31,16 +34,12 @@
home = {
username = device.user;
homeDirectory =
if device.isDarwin
then lib.mkForce "/Users/${device.user}"
else lib.mkForce "/home/${device.user}";
if device.isDarwin then lib.mkForce "/Users/${device.user}" else lib.mkForce "/home/${device.user}";
file = {
".config/fish/themes".source = pkgs.catppuccinThemes.fish + "/themes";
".cargo/config.toml".text =
/*
toml
*/
# toml
''
[alias]
lldb = ["with", "rust-lldb", "--"]
@@ -61,12 +60,12 @@
EDITOR = "nvim";
SHELL = "${pkgs.bash}/bin/bash";
CARGO_TARGET_DIR = "${config.xdg.cacheHome}/cargo/target";
BROWSER =
if device.isDarwin
then "open"
else "xdg-open";
BROWSER = if device.isDarwin then "open" else "xdg-open";
};
sessionPath = ["${config.home.homeDirectory}/.cargo/bin" "${config.home.homeDirectory}/.local/bin"];
sessionPath = [
"${config.home.homeDirectory}/.cargo/bin"
"${config.home.homeDirectory}/.local/bin"
];
stateVersion = "23.11";
};