added: scripts from @zethra's configs, and tidied flake structure lili bit

This commit is contained in:
Serenity-F 2024-04-09 13:38:04 +10:00
parent b0a649e560
commit 9a3fbee8bb
25 changed files with 230 additions and 0 deletions

View 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"