added nom for the build (sudo prompt won't show up but password input still works)
This commit is contained in:
parent
63e74350fb
commit
65032788b2
6 changed files with 231 additions and 177 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue