#!/bin/sh # update in case i was fucking around somewhere else git pull # format everything to look nice nixpkgs-fmt *.nix nixpkgs-fmt ./nvim/*.nix nixpkgs-fmt ./penrose/*.nix nixpkgs-fmt ./fish/*.nix nixpkgs-fmt ./kitty/*.nix # make a backup just in case cp -r /etc/nixos/ ./backup # copy over all the files to /etc/nixos/ sudo cp -r ./configuration.nix ./fish ./kitty ./nvim/ ./packages.nix ./home.nix ./user.nix /etc/nixos/ # build penrose and copy it to nixos folder cd ./penrose nix-shell --run "cargo build --release" --pure sudo cp ./target/release/penrose-custom /etc/nixos cd ../ # update and build my new config sudo nixos-rebuild switch --upgrade