Skip to content

kirinnee/home-manager

Repository files navigation

Home Manager Configurations

My personal home-manager configurations, which include ZSH plugins, configurations and basic binaries used for development.

Setup New Box

Install Basic Dependencies: Nix, Home Manager, and basic applications

curl -L https://raw.githubusercontent.com/kirinnee/home-manager/main/scripts/setup.sh | bash

Configure SSH Key and GPG Key and setting up rate-limits for Nix

setup-devbox-server

AutoBackup CLI

Within this home-manager, I created 2 CLI that helps me backup folders to pCloud itself.

  1. setup-rclone-pcloud On a computer with browser access and rclone CLI, run the following command to obtain a JSON token:

    rclone authorize "pcloud"

    Run the rclone pcloud setup and paste the token in:

    setup-rclone-pcloud
  2. backup-pcloud With setup-rclone-pcloud completed, you can backup any directory to pCloud's Backup folder:

    backup-pcloud backup ./Workspace desktop1 # => tarballs ./Workspace and send to pClouds's Backup/desktop1 folder
    backup-pcloud backup /home/kirin remote/devbox1 # => tarball /home/kirin and send to pCloud's Backup/remote/devbox1 folder
  3. Restoring If you have backed up before, you can easily restore the latest backup with the follow command:

    backup-pcloud restore ./Workspace desktop1 # restores the first commnad previously
    backup-pcloud restore /home/kirin remote/devobx1 # restores the second command previously

Crontab

You can setup auto-backup with cron:

crontab -e
0 0 * * * sudo -u kirin bash -i -c 'pcloud-backup backup Workspace devbox'

About

Home Manager configurations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published