refactor home.packages and add scrot, tree_hugger packages
This commit is contained in:
@@ -30,103 +30,96 @@
|
|||||||
# release notes.
|
# release notes.
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
home.packages =
|
home.packages = with pkgs; [
|
||||||
with pkgs;
|
htop
|
||||||
[
|
gnupg
|
||||||
htop
|
pkgs-unstable.yubioath-flutter
|
||||||
gnupg
|
pkgs-unstable.yubikey-manager
|
||||||
pkgs-unstable.yubioath-flutter
|
gcc
|
||||||
pkgs-unstable.yubikey-manager
|
sqlite
|
||||||
gcc
|
noto-fonts
|
||||||
sqlite
|
noto-fonts-cjk-sans
|
||||||
noto-fonts
|
noto-fonts-color-emoji
|
||||||
noto-fonts-cjk-sans
|
source-sans-pro
|
||||||
noto-fonts-color-emoji
|
mosh
|
||||||
source-sans-pro
|
docker-compose
|
||||||
mosh
|
(signal-desktop.override {
|
||||||
docker-compose
|
commandLineArgs = "--password-store=gnome-libsecret";
|
||||||
(signal-desktop.override {
|
})
|
||||||
commandLineArgs = "--password-store=gnome-libsecret";
|
cargo
|
||||||
})
|
blanket
|
||||||
cargo
|
wl-clipboard
|
||||||
blanket
|
gnumeric
|
||||||
wl-clipboard
|
gh
|
||||||
gnumeric
|
neovim-remote
|
||||||
gh
|
pkgs-unstable.gradia
|
||||||
neovim-remote
|
crystal
|
||||||
pkgs-unstable.gradia
|
shards
|
||||||
crystal
|
moreutils
|
||||||
shards
|
keymapp
|
||||||
moreutils
|
gnumake
|
||||||
keymapp
|
tig
|
||||||
gnumake
|
jq
|
||||||
tig
|
yt-dlp
|
||||||
jq
|
ffmpeg
|
||||||
yt-dlp
|
otp
|
||||||
ffmpeg
|
manix
|
||||||
otp
|
(writeShellScriptBin "fd" ''
|
||||||
manix
|
${fd}/bin/fd -H "$@"
|
||||||
(writeShellScriptBin "fd" ''
|
'')
|
||||||
${fd}/bin/fd -H "$@"
|
pkgs-unstable.rpi-imager
|
||||||
'')
|
picocom
|
||||||
pkgs-unstable.rpi-imager
|
imagemagick
|
||||||
picocom
|
ghostscript
|
||||||
imagemagick
|
inkscape
|
||||||
ghostscript
|
jless
|
||||||
inkscape
|
scribus
|
||||||
jless
|
dnscontrol
|
||||||
scribus
|
protonmail-bridge
|
||||||
dnscontrol
|
hydroxide
|
||||||
protonmail-bridge
|
imapsync
|
||||||
hydroxide
|
nixfmt-rfc-style
|
||||||
imapsync
|
tree
|
||||||
nixfmt-rfc-style
|
virt-manager
|
||||||
tree
|
pkgs-unstable.ncspot
|
||||||
virt-manager
|
pkgs-unstable.devbox
|
||||||
pkgs-unstable.ncspot
|
pkgs-unstable.feishin
|
||||||
pkgs-unstable.devbox
|
openscad
|
||||||
pkgs-unstable.feishin
|
pkgs-unstable.shairport-sync-airplay2
|
||||||
openscad
|
(writeShellScriptBin "pw" ''
|
||||||
pkgs-unstable.shairport-sync-airplay2
|
${lib.getExe rbw} ls --fields 'id,folder,name' | \
|
||||||
(writeShellScriptBin "pw" ''
|
${lib.getExe gawk} -F '\t' '{print $1 "\t" ($2 == "" ? "" : $2 "/") $3}' | \
|
||||||
${lib.getExe rbw} ls --fields 'id,folder,name' | \
|
${lib.getExe config.services.walker.package} -d -l 2 | \
|
||||||
${lib.getExe gawk} -F '\t' '{print $1 "\t" ($2 == "" ? "" : $2 "/") $3}' | \
|
xargs ${lib.getExe rbw} get "$@" | ${lib.getExe' wl-clipboard "wl-copy"}
|
||||||
${lib.getExe config.services.walker.package} -d -l 2 | \
|
'')
|
||||||
xargs ${lib.getExe rbw} get "$@" | ${lib.getExe' wl-clipboard "wl-copy"}
|
(google-fonts.override { fonts = [ "Tajawal" ]; })
|
||||||
'')
|
pkgs-unstable.opencode
|
||||||
(google-fonts.override { fonts = [ "Tajawal" ]; })
|
(writeShellScriptBin "nr" ''
|
||||||
pkgs-unstable.opencode
|
${lib.getExe nix} run "nixpkgs#''${1}" "$@"
|
||||||
(writeShellScriptBin "nr" ''
|
'')
|
||||||
${lib.getExe nix} run "nixpkgs#''${1}" "$@"
|
pkgs-unstable.tidal-hifi
|
||||||
'')
|
inputs.tonearm.packages.${stdenv.hostPlatform.system}.tonearm
|
||||||
pkgs-unstable.tidal-hifi
|
blueman
|
||||||
inputs.tonearm.packages.${pkgs.stdenv.hostPlatform.system}.tonearm
|
pavucontrol
|
||||||
blueman
|
(writeShellScriptBin "voxtoggle" ''
|
||||||
pavucontrol
|
status=$(${lib.getExe config.programs.voxtype.package} status)
|
||||||
(writeShellScriptBin "voxtoggle" ''
|
pid=$(cat ''${XDG_RUNTIME_DIR}/voxtype/pid)
|
||||||
status=$(${lib.getExe config.programs.voxtype.package} status)
|
|
||||||
pid=$(cat ''${XDG_RUNTIME_DIR}/voxtype/pid)
|
|
||||||
|
|
||||||
if [[ "$status" == "stopped" ]]; then
|
if [[ "$status" == "stopped" ]]; then
|
||||||
exit 1
|
exit 1
|
||||||
elif [[ "$status" == "recording" ]]; then
|
elif [[ "$status" == "recording" ]]; then
|
||||||
kill -SIGUSR2 "$pid"
|
kill -SIGUSR2 "$pid"
|
||||||
else
|
else
|
||||||
kill -SIGUSR1 "$pid"
|
kill -SIGUSR1 "$pid"
|
||||||
fi
|
fi
|
||||||
'')
|
'')
|
||||||
]
|
(writeShellScriptBin "scrot" ''
|
||||||
++ lib.optional osConfig.programs.niri.enable (
|
set -eo pipefail
|
||||||
pkgs.writeShellScriptBin "handle-lid-close" ''
|
|
||||||
alias niri=${lib.getExe osConfig.programs.niri.package}
|
|
||||||
|
|
||||||
output_count=$(niri outputs | ${lib.getExe jq} -r 'length')
|
${lib.getExe grim} -t ppm -g "$(${lib.getExe slurp} -o -d -F monospace)" - | ${lib.getExe gradia}
|
||||||
if [ "$output_count" -eq 1 ]; then
|
'')
|
||||||
niri msg action spawn hyprlock
|
inputs.tree_hugger.packages.${stdenv.hostPlatform.system}.default
|
||||||
systemctl suspend
|
];
|
||||||
fi
|
|
||||||
''
|
|
||||||
);
|
|
||||||
|
|
||||||
programs = {
|
programs = {
|
||||||
ashell = {
|
ashell = {
|
||||||
|
|||||||
Reference in New Issue
Block a user