refactor home.packages and add scrot, tree_hugger packages
This commit is contained in:
@@ -30,9 +30,7 @@
|
||||
# release notes.
|
||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||
|
||||
home.packages =
|
||||
with pkgs;
|
||||
[
|
||||
home.packages = with pkgs; [
|
||||
htop
|
||||
gnupg
|
||||
pkgs-unstable.yubioath-flutter
|
||||
@@ -100,7 +98,7 @@
|
||||
${lib.getExe nix} run "nixpkgs#''${1}" "$@"
|
||||
'')
|
||||
pkgs-unstable.tidal-hifi
|
||||
inputs.tonearm.packages.${pkgs.stdenv.hostPlatform.system}.tonearm
|
||||
inputs.tonearm.packages.${stdenv.hostPlatform.system}.tonearm
|
||||
blueman
|
||||
pavucontrol
|
||||
(writeShellScriptBin "voxtoggle" ''
|
||||
@@ -115,18 +113,13 @@
|
||||
kill -SIGUSR1 "$pid"
|
||||
fi
|
||||
'')
|
||||
]
|
||||
++ lib.optional osConfig.programs.niri.enable (
|
||||
pkgs.writeShellScriptBin "handle-lid-close" ''
|
||||
alias niri=${lib.getExe osConfig.programs.niri.package}
|
||||
(writeShellScriptBin "scrot" ''
|
||||
set -eo pipefail
|
||||
|
||||
output_count=$(niri outputs | ${lib.getExe jq} -r 'length')
|
||||
if [ "$output_count" -eq 1 ]; then
|
||||
niri msg action spawn hyprlock
|
||||
systemctl suspend
|
||||
fi
|
||||
''
|
||||
);
|
||||
${lib.getExe grim} -t ppm -g "$(${lib.getExe slurp} -o -d -F monospace)" - | ${lib.getExe gradia}
|
||||
'')
|
||||
inputs.tree_hugger.packages.${stdenv.hostPlatform.system}.default
|
||||
];
|
||||
|
||||
programs = {
|
||||
ashell = {
|
||||
|
||||
Reference in New Issue
Block a user