22 lines
589 B
Bash
Executable File
22 lines
589 B
Bash
Executable File
#!/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
|
|
|
|
# make a backup just in case
|
|
cp -r /etc/nixos/ ./backup
|
|
|
|
# copy over all the files to /etc/nixos/
|
|
sudo cp -r ./configuration.nix ./nvim/ ./packages.nix ./home.nix /etc/nixos/
|
|
## copy penrose stuff
|
|
sudo mkdir /etc/nixos/penrose
|
|
sudo cp -r ./penrose/Cargo.nix ./penrose/src ./penrose/default.nix ./penrose/rust-toolchain /etc/nixos/penrose
|
|
|
|
# update and build my new config
|
|
sudo nixos-rebuild switch --upgrade
|