nixos-old/sync.sh

22 lines
678 B
Bash
Raw Permalink Normal View History

2022-10-24 13:01:11 +00:00
#!/bin/sh
2022-10-24 12:35:26 +00:00
2022-10-24 19:14:09 +00:00
# update in case i was fucking around somewhere else
2022-10-24 13:24:49 +00:00
git pull
2022-10-24 19:14:09 +00:00
# make a backup just in case
2022-10-30 13:30:28 +00:00
# cp -r /etc/nixos/ ./backup
2022-10-24 19:14:09 +00:00
# copy over all the files to /etc/nixos/
2023-05-15 07:56:19 +00:00
sudo cp -ru ./flake.nix ./configuration.nix ./wallpaper.png ./dunst ./helix ./rofi ./i3 ./sway ./fish ./kitty ./nvim/ ./disks.nix ./variables.nix ./programs.nix ./defaults.nix ./packages.nix ./home.nix ./services.nix ./user.nix /etc/nixos/
2022-11-19 11:26:53 +00:00
cp -u ./.xinitrc $HOME
2022-10-24 19:14:09 +00:00
2022-10-29 15:18:08 +00:00
# build penrose and copy it to nixos folder
2022-10-30 13:30:28 +00:00
# cd ./penrose
# nix-shell --run "cargo build --release" --pure
# sudo cp ./target/release/penrose-custom /etc/nixos
# cd ../
2022-10-29 06:50:37 +00:00
2022-10-24 19:14:09 +00:00
# update and build my new config
2023-04-07 06:49:06 +00:00
sudo nixos-rebuild switch --impure