update fish

This commit is contained in:
albert 2024-05-08 11:12:36 +09:00
parent 8ed8c8d783
commit 7fcd254096
Signed by: albert
GPG key ID: 3895DD267CA11BA9

View file

@ -63,42 +63,10 @@
nixos-build-desktop $argv nixos-build-desktop $argv
ls -lah ~/ | grep nixos 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 = '' nixos-build-pi-img = ''
pushd /etc/nixos/git pushd /etc/nixos/git
git pull git pull
nix build .#imageConfigurations.nixos-rpi4-img nix build .#imageConfigurations.nixos-rpi4-img $argv
cp result/sd-image/nixos-sd-image* ~/. cp result/sd-image/nixos-sd-image* ~/.
rm -f result rm -f result
popd popd
@ -106,24 +74,24 @@
nixos-build-linode-img = '' nixos-build-linode-img = ''
pushd /etc/nixos/git pushd /etc/nixos/git
git pull git pull
nix build .#imageConfigurations.nixos-linode-img nix build .#imageConfigurations.nixos-linode-img $argv
cp result/nixos.img.gz ~/nixos-linode-`ddate`-`git rev-parse HEAD | cut -b 1-7`.img.gz cp result/nixos.img.gz ~/nixos-linode-$(ddate)-$(git rev-parse HEAD | cut -b 32-).img.gz
rm -f result rm -f result
popd popd
''; '';
nixos-build-console = '' nixos-build-console = ''
pushd /etc/nixos/git pushd /etc/nixos/git
git pull git pull
nix build .#imageConfigurations.nixos-iso-console nix build .#imageConfigurations.nixos-iso-console $argv
cp result/iso/nixos.iso ~/nixos-console-`ddate`-`git rev-parse HEAD | cut -b 1-7`.iso cp result/iso/nixos.iso ~/nixos-console-$(ddate)-$(git rev-parse HEAD | cut -b 32-).iso
rm -f result rm -f result
popd popd
''; '';
nixos-build-desktop = '' nixos-build-desktop = ''
pushd /etc/nixos/git pushd /etc/nixos/git
git pull git pull
nix build .#imageConfigurations.nixos-iso-desktop nix build .#imageConfigurations.nixos-iso-desktop $argv
cp result/iso/nixos.iso ~/nixos-desktop-`ddate`-`git rev-parse HEAD | cut -b 1-7`.iso cp result/iso/nixos.iso ~/nixos-desktop-$(ddate)-$(git rev-parse HEAD | cut -b 32-).iso
rm -f result rm -f result
popd popd
''; '';