mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-19 13:04:00 +05:30
Removed phoenix script, added and refactored some scripts
This commit is contained in:
parent
4a86714308
commit
1cbfd7ab33
6 changed files with 69 additions and 232 deletions
24
update.sh
24
update.sh
|
@ -1,23 +1,7 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Automated script to update my non-primary systems
|
||||
# to be in sync with upstream git repo while
|
||||
# preserving local edits to dotfiles via git stash
|
||||
|
||||
# Relax permissions temporarily so git can work
|
||||
sudo ~/.dotfiles/soften.sh ~/.dotfiles;
|
||||
|
||||
# Stash local edits, pull changes, and re-apply local edits
|
||||
git stash
|
||||
git pull
|
||||
git stash apply
|
||||
|
||||
# Permissions for files that should be owned by root
|
||||
sudo ~/.dotfiles/harden.sh ~/.dotfiles;
|
||||
|
||||
# Rebuild system
|
||||
sudo nixos-rebuild switch --flake ~/.dotfiles#system;
|
||||
|
||||
# Install and build home-manager configuration
|
||||
home-manager --extra-experimental-features nix-command --extra-experimental-features flakes -- switch --flake ~/.dotfiles#user;
|
||||
# Script to update my flake without
|
||||
# synchronizing configuration
|
||||
|
||||
# Update flake
|
||||
sudo nix flake update ~/.dotfiles;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue