flake: add nix-output-monitor

This commit is contained in:
Leonardo Eugênio 2025-02-04 23:46:58 -03:00
parent ed834c5013
commit bfe92e0ed9
2 changed files with 21 additions and 6 deletions

25
switch
View file

@ -1,12 +1,25 @@
#!/usr/bin/env bash
set -euo pipefail
nix fmt
git --no-pager diff
nixos-rebuild \
switch \
--use-remote-sudo \
--print-build-logs \
--flake .# \
"$@"
run() {
nixos-rebuild \
switch \
--use-remote-sudo \
--print-build-logs \
--flake .# \
"$@"
}
if which nom >/dev/null; then
run --verbose \
--log-format internal-json \
"$@" \
|& nom --json
else
run "$@"
fi

View file

@ -44,6 +44,8 @@
usbutils
# dracula-theme # gtk theme
adwaita-icon-theme # default gnome cursors
nix-output-monitor
];
services.geoclue2.enable = true;