sudo nixos-rebuild switch --flake .#deathstar
# temporary package installation
nix-shell -p <package_name>
# updating the system
nix flake update
fwupdmgr update
# code formatting
nix fmt
# The `clonerer` is a shitty bash script, which clones the defined git repos and adds the given git remotes to them.
clonerer
I use restic for my backups. The backups are stored on Backblaze B2 via the S3 API and on a local harddrive.
The backup to Backblaze B2 is automated and runs every hour.
# showing the status of the backblaze b2 backup
systemctl status restic-backups-b2.service
# showing the snapshots of the backblaze b2 backup
restic-b2 snapshots
restic documentation for restoring
# starting the HDD backup
systemctl start restic-backups-hdd
# showing the status of the HDD backup
systemctl status restic-backups-hdd
# showing the snapshots of the HDD backup
restic-hdd snapshots
# restoring the backup from the HDD
restic-hdd restore latest --target /
agenix is a tool for encrypted secrets in your NixOS config.
AWS_ACCESS_KEY_ID=<MY_ACCESS_KEY>
AWS_SECRET_ACCESS_KEY=<MY_SECRET_ACCESS_KEY>
cd secrets
agenix -e secret1.age
Add the new public key into secrets.nix
.
# rekey the secrets
agenix -r
After doing a nixos-rebuild which changed some waybar settings, it might be necessary to restart the waybar manually to apply the changes.
systemctl --user restart waybar
Don't forget to set the proper sleep state option (Linux
) in the BIOS in menu Config -> Power
.