Minor updates and got all systems to build!

This commit is contained in:
Emmet
2025-02-12 15:57:42 -06:00
parent 52ce2d1cb1
commit 25b7cbb919
13 changed files with 336 additions and 164 deletions

24
scripts/build.sh Executable file
View 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;

View File

@@ -1,5 +1,8 @@
#!/bin/sh
## THIS DOESN'T WORK ANYMORE BTW
# TODO update this..
# Automated script to install my dotfiles
# Clone dotfiles

View File

@@ -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;

View File

@@ -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

View File

@@ -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

View File

@@ -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;