first test

This commit is contained in:
cnst
2024-09-21 23:22:22 +02:00
parent c647cea072
commit e212239e8c
36 changed files with 624 additions and 240 deletions

58
.scripts/default.nix Normal file
View File

@@ -0,0 +1,58 @@
{
config,
pkgs,
lib,
...
}: let
inherit (lib) getExe;
inherit (builtins) readFile;
in {
home = {
# Ensure the scripts are linked in the session PATH
sessionPath = ["${config.home.homeDirectory}/.local/bin"];
# Link the pavucontrol script to the local PATH
file = {
".local/bin/pavucontrol-toggle.sh" = {
source = getExe (pkgs.writeShellApplication {
name = "pavucontrol-toggle";
runtimeInputs = with pkgs; [hyprland]; # Add any required runtime dependencies here
text = readFile ./bin/pavucontrol-toggle.sh; # Path to your pavucontrol.sh script
});
};
".local/bin/tuirun-toggle.sh" = {
source = getExe (pkgs.writeShellApplication {
name = "tuirun-toggle";
runtimeInputs = with pkgs; [hyprland]; # Add any required runtime dependencies here
text = readFile ./bin/tuirun-toggle.sh; # Path to your tuirun-toggle.sh script
});
};
".local/bin/calcurse-toggle.sh" = {
source = getExe (pkgs.writeShellApplication {
name = "calcurse-toggle";
runtimeInputs = with pkgs; [hyprland]; # Add any required runtime dependencies here
text = readFile ./bin/calcurse-toggle.sh; # Path to your calcurse-toggle.sh script
});
};
".local/bin/volume-control.sh" = {
source = getExe (pkgs.writeShellApplication {
name = "volume-control";
runtimeInputs = with pkgs; [pamixer libnotify]; # Add any required runtime dependencies here
text = readFile ./bin/volume-control.sh; # Path to your volume-control.sh script
});
};
".local/bin/extract.sh" = {
# Stolen from NotAShelf
source = getExe (pkgs.writeShellApplication {
name = "extract";
runtimeInputs = with pkgs; [zip unzip gnutar p7zip];
text = readFile ./bin/extract.sh;
});
};
};
};
}