Skip to content

JonasPhilbert/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dotfiles

.files for my own personal use.

TODO

  1. Create a setup script to run all of the commands in the "Start from a fresh machine" -section automatically?

Starting from a fresh machine

Linux (NixOS)

  1. Install NixOS on a machine or VM.
  2. Create an SSH key for GitHub using: ssh-keygen -t ed25519, and add it to the SSH agent using: ssh-add ~/.ssh/id_ed25519
  3. Upload the public SSH key to GitHub (you may need to do: eval ssh-agent -s`` to set up env for ssh-add)
  4. Temporarily add git to NixOS using: nix-env --install git
  5. Clone the repo to a temp. folder using: git clone [email protected]:JonasPhilbert/dotfiles.git ~/dotfiles
  6. Copy repo contents to home using: cp ~/dotfiles/. ~ -rf
  7. Delete temporary folder using: rm -rf ~/dotfiles
  8. Copy NixOS hardware configuration to main NixOS flake folder using: sudo cp /etc/nixos/hardware-configuration.nix ~/.nixos
  9. Temporarily add the hardware config to git to allow a nix build using: git add -f ~/.nixos/hardware-configuration.nix
  10. Rebuild NixOS using the cloned flake using: sudo nixos-rebuild switch --flake ~/.nixos#nixos
  11. Profit! 🎉
  12. Configure in the future using the custom fish command: nixosconf

MacOS

TODO

About

.files and other configuration files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published