A few notes about my configuration in case I get lost.
Only works on Darwin atm: Run this install script:
bash -c 'curl -O https://raw.githubusercontent.com/aspauldingcode/.dotfiles/main/install.sh && sudo chmod +x install.sh && bash install.sh'
ssh-keygen -t ed25519 #(then add .ssh/id_ed25519.pub key to github). Done.
Now, you'll need to run a quick series of commands.
Clone the .dotfiles repo:
git clone [email protected]:aspauldingcode/.dotfiles.git ~/.dotfiles
# Be sure to enter ssh dotfiles-keys passphrase!
We can install our configurations, based on the hostname of the computer.
NOTE: if adding a new computer, it's required to modify the "flake.nix
" in order to support the new device, including the architecture and device hostname, as well as the desired users. In addition, you will need to add your device to a folder under "system/hostname/
," which will contain your system "configuration.nix
," and "hardware-configuration.nix
."
FIRST INSTALL based on Hostname
# NIXY(aarch64-darwin)
#NEEDED for FIRST INSTALL (LIKELY TO CHANGE IN THE FUTURE)
darwin-rebuild switch -I ~/.dotfiles/system/NIXY/darwin-configuration.nix
home-manager build --flake .#alex@NIXY
it is now possible to rebuild using ONLY the following command:
rebuild
REBUILD EXISITNG based on Hostname:
# NIXSTATION64(x86_64-linux)
cd ~/.dotfiles
sudo nixos-rebuild switch --flake .#NIXSTATION64
# NIXEDUP(aarch64-linux)
cd ~/.dotfiles
sudo nixos-rebuild switch --flake .#NIXEDUP
# NIXY(aarch64-darwin)
cd ~/.dotfiles
darwin-rebuild switch --flake .#NIXY