Minor updates and got all systems to build!
This commit is contained in:
24
scripts/build.sh
Executable file
24
scripts/build.sh
Executable file
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Script to build all systems
|
||||
# And push to attic cache
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
|
||||
pushd $SCRIPT_DIR/.. &> /dev/null;
|
||||
nixos-rebuild build --flake .#snowfire;
|
||||
attic push emmet ./result;
|
||||
rm ./result;
|
||||
nixos-rebuild build --flake .#polarias;
|
||||
attic push emmet ./result;
|
||||
rm ./result;
|
||||
nixos-rebuild build --flake .#zenith;
|
||||
attic push emmet ./result;
|
||||
rm ./result;
|
||||
nixos-rebuild build --flake .#stardust;
|
||||
attic push emmet ./result;
|
||||
rm ./result;
|
||||
nixos-rebuild build --flake .#ori;
|
||||
attic push emmet ./result;
|
||||
rm ./result;
|
@@ -1,5 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
## THIS DOESN'T WORK ANYMORE BTW
|
||||
|
||||
# TODO update this..
|
||||
# Automated script to install my dotfiles
|
||||
|
||||
# Clone dotfiles
|
||||
|
@@ -1,10 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Script to synchronize system state
|
||||
# with configuration files for nixos system
|
||||
# and home-manager
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
# Rebuild system
|
||||
sudo nixos-rebuild switch --flake $SCRIPT_DIR/..#system;
|
@@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
# Script to synchronize system state
|
||||
# with configuration files for nixos system
|
||||
# and home-manager
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
# Install and build home-manager configuration
|
||||
home-manager switch --flake $SCRIPT_DIR/..#user -b bkp;
|
||||
|
||||
$SCRIPT_DIR/sync-posthook.sh
|
@@ -6,5 +6,8 @@
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
|
||||
$SCRIPT_DIR/sync-system.sh
|
||||
$SCRIPT_DIR/sync-user.sh
|
||||
# Rebuild system
|
||||
sudo nixos-rebuild switch --flake $SCRIPT_DIR/..;
|
||||
|
||||
# Refresh
|
||||
$SCRIPT_DIR/sync-posthook.sh
|
||||
|
@@ -4,8 +4,12 @@
|
||||
# synchronizing configuration
|
||||
|
||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||
OUTOFDATEFLAKEREFS=(hyprland/hyprcursor)
|
||||
|
||||
# Update flake
|
||||
pushd $SCRIPT_DIR/.. &> /dev/null;
|
||||
sudo nix flake update "$@";
|
||||
if [ "$#" -eq 0 ]; then
|
||||
sudo nix flake update $OUTOFDATEFLAKEREFS;
|
||||
fi
|
||||
popd &> /dev/null;
|
||||
|
Reference in New Issue
Block a user