frues-clan/users/pedro/home-configuration/scripts/default.nix
Pedro Rey Anca 7606f9e051
Some checks failed
Update `flake.lock` / update_lockfile (push) Waiting to run
Flake check / check (push) Has been cancelled
Migrate config (frues-pc machine for now) from https://git.peprolinbot.com/peprolinbot/nixos-config, with improvements
2025-09-08 18:59:28 +02:00

70 lines
2.2 KiB
Nix

{pkgs, ...}: {
home.packages =
[
(pkgs.writeShellApplication {
name = "ddcmonitorctl";
runtimeInputs = with pkgs; [ddcutil];
text = builtins.readFile ./scripts/ddcmonitorctl.sh;
})
]
++ (let
wall-change = pkgs.writeShellApplication {
name = "wall-change";
runtimeInputs = with pkgs; [swaybg imagemagick];
text = builtins.readFile ./scripts/wall-change.sh;
};
setbg-apotd = pkgs.writeShellApplication {
name = "setbg-apotd";
runtimeInputs = [pkgs.curl pkgs.gnugrep pkgs.gnused wall-change];
text = builtins.readFile ./scripts/setbg-apotd.sh;
};
setbg-bpotd = pkgs.writeShellApplication {
name = "setbg-bpotd";
runtimeInputs = with pkgs; [pkgs.curl pkgs.jq wall-change];
text = builtins.readFile ./scripts/setbg-bpotd.sh;
};
wallpaper-picker = pkgs.writeShellApplication {
name = "wallpaper-picker";
runtimeInputs = [pkgs.fuzzel setbg-apotd setbg-bpotd wall-change];
text = builtins.readFile ./scripts/wallpaper-picker.sh;
};
in [
wall-change
setbg-apotd
setbg-bpotd
wallpaper-picker
])
++ [
(pkgs.writeShellApplication {
name = "runbg";
text = builtins.readFile ./scripts/runbg.sh;
})
(pkgs.writeShellApplication {
name = "toggle_blur";
text = builtins.readFile ./scripts/toggle_blur.sh;
})
(pkgs.writeShellApplication {
name = "toggle_oppacity";
text = builtins.readFile ./scripts/toggle_oppacity.sh;
})
(pkgs.writeShellApplication {
name = "shutdown-script";
runtimeInputs = with pkgs; [fuzzel];
text = builtins.readFile ./scripts/shutdown-script.sh;
})
(pkgs.writeShellApplication {
name = "show-keybinds";
runtimeInputs = with pkgs; [fuzzel gnugrep];
text = builtins.readFile ./scripts/show-keybinds.sh;
})
(pkgs.writeShellApplication {
name = "screenshot-menu";
runtimeInputs = with pkgs; [fuzzel grimblast swappy];
text = builtins.readFile ./scripts/screenshot-menu.sh;
})
];
}