Update bashrc

This commit is contained in:
iFargle 2023-12-15 13:56:53 +09:00
parent 4c399c1ef0
commit 6be6a8400c

View file

@ -46,6 +46,17 @@
};
bashrcExtra = ''
# Build ISOs/SD Card Images
nixos-build-all-images-verbose() {
echo "Building Linode image..."
nixos-build-linode-img-verbose
echo "Building Raspberry Pi image..."
nixos-build-pi-img-verbose
echo "Building ISO Console image..."
nixos-build-console-verbose
echo "Building ISO Desktop image..."
nixos-build-desktop-verbose
ls -lah ~/ | grep nixos
}
nixos-build-all-images() {
echo "Building Linode image..."
nixos-build-linode-img
@ -57,6 +68,38 @@
nixos-build-desktop
ls -lah ~/ | grep nixos
}
nixos-build-pi-img-verbose() {
pushd /etc/nixos/git
git pull
nix build .#imageConfigurations.nixos-rpi4-img --show-trace --verbose
cp result/sd-image/nixos-sd-image* ~/.
rm -f result
popd
}
nixos-build-linode-img-verbose() {
pushd /etc/nixos/git
git pull
nix build .#imageConfigurations.nixos-linode-img --show-trace --verbose
cp result/nixos.img.gz ~/nixos-linode-`ddate`-`git rev-parse HEAD | cut -b 1-7`.img.gz
rm -f result
popd
}
nixos-build-console-verbose() {
pushd /etc/nixos/git
git pull
nix build .#imageConfigurations.nixos-iso-console --show-trace --verbose
cp result/iso/nixos.iso ~/nixos-console-`ddate`-`git rev-parse HEAD | cut -b 1-7`.iso
rm -f result
popd
}
nixos-build-desktop-verbose() {
pushd /etc/nixos/git
git pull
nix build .#imageConfigurations.nixos-iso-desktop --show-trace --verbose
cp result/iso/nixos.iso ~/nixos-desktop-`ddate`-`git rev-parse HEAD | cut -b 1-7`.iso
rm -f result
popd
}
nixos-build-pi-img() {
pushd /etc/nixos/git
git pull