added: scripts from @zethra's configs, and tidied flake structure lili bit
This commit is contained in:
parent
b0a649e560
commit
9a3fbee8bb
25 changed files with 230 additions and 0 deletions
14
home/scripts/zethra/show-upgrade
Executable file
14
home/scripts/zethra/show-upgrade
Executable file
|
|
@ -0,0 +1,14 @@
|
|||
#!/bin/sh
|
||||
set -euo pipefail
|
||||
|
||||
nixcfg=~/Projects/nixcfg
|
||||
|
||||
tempdir=$(mktemp -d /tmp/tmp.nix-updateinfo.XXX)
|
||||
git clone --reference "$nixcfg" "$nixcfg" "$tempdir"
|
||||
cd $tempdir
|
||||
nix flake lock --update-input nixpkgs
|
||||
nix build ".#nixosConfigurations.$(hostname).config.system.build.toplevel"
|
||||
nvd diff /run/current-system ./result
|
||||
|
||||
cd ~-
|
||||
rm -rf "$tempdir"
|
||||
Loading…
Add table
Add a link
Reference in a new issue