added nom for the build (sudo prompt won't show up but password input still works)

This commit is contained in:
Lillian Violet 2025-05-24 03:20:31 +02:00
parent 63e74350fb
commit 65032788b2
6 changed files with 231 additions and 177 deletions

View file

@ -1,9 +1,13 @@
{writeShellApplication}:
{
writeShellApplication,
nom,
just,
}:
writeShellApplication
{
name = "rebuild-no-inhibit";
runtimeInputs = [];
runtimeInputs = [nom just];
text = ''
# A rebuild script for NixOS
@ -14,7 +18,7 @@ writeShellApplication
git clone https://codeberg.org/Lillian-Violet/NixOS-Config.git ./rebuild
pushd ./rebuild > /dev/null
echo "NixOS Rebuilding..."
sudo nixos-rebuild switch --flake .#
just build
popd > /dev/null
echo "Cleaning up repository in '/tmp/rebuild'..."
rm -rf ./rebuild