This commit is contained in:
iFargle 2023-09-30 14:03:08 +09:00
parent 0d6999cf16
commit b156564a82

View file

@ -40,13 +40,32 @@
# GTK_THEME = "Gruvbox-Dark-BL";
XDG_DATA_HOME = "$HOME/.local/share";
# Disable askpass for cli auth:
# SSH_ASKPASS = "";
SSH_ASKPASS = "";
};
bashrcExtra = ''
# Build ISOs/SD Card Images
nixos-build-pi-img() {
pushd /etc/nixos/git
git pull
nix build .#imageConfigurations.nixos-rpi4-img
popd
}
nixos-build-console() {
pushd /etc/nixos/git
git pull
nix build .#imageConfigurations.nixos-iso-console
cp result/iso/nixos.iso ~/nixos-console-`ddate`-`git rev-parse HEAD | cut -b 1-7`.iso
rm -f result
popd
}
# NixOS Related
nix-clean-all() {
sudo nix-env -u --always
sudo nix-collect-garbage -d
}
# Update SOPS Secrets
install-secrets() {
pushd /etc/nixos/git
nix develop -c update-repo
@ -108,11 +127,6 @@
rebuild-home = "git -C /etc/nixos/git pull && home-manager switch -b backup --flake /etc/nixos/git";
rebuild-host = "git -C /etc/nixos/git pull && sudo nixos-rebuild switch --flake /etc/nixos/git";
rebuild-all = "rebuild-home && rebuild-host";
# Build ISOs/SD Card Images
nixos-build-pi-img = "pushd /etc/nixos/git && git pull && nix build .#imageConfigurations.nixos-rpi4-img && popd";
nixos-build-console = "pushd /etc/nixos/git && git pull && nix build .#imageConfigurations.nixos-iso-console && cp result/iso/nixos.iso ~/nixos-console-`ddate`.iso && rm -f result && popd";
# nixos-build-desktop = "pushd /etc/nixos/git && git pull && nix build .#nixosConfigurations.nixos-iso-desktop && popd";
};
};
};