Skip to content

a-h/dotfiles

Repository files navigation

a-h dotfiles

  • MacOS configuration shell script at .macos to disable pointless animations, free up screen space and remove background processes.
  • Nix package manager used to install system.
  • tmux configuration.
  • zsh configuration.
  • DZ60 configuration for keyboard layout (https://config.qmk.fm)

New machine setup

  1. Import public key (gpg --import public-key.gpg)
  2. https://security.stackexchange.com/questions/129474/how-to-raise-a-key-to-ultimate-trust-on-another-machine
  3. Remember to disable the Gnome Keyring, since it starts an SSH agent.
  4. Remembers to use keytocard to migrate the key onto the new card https://developers.yubico.com/PGP/Importing_keys.html
  5. Setup the GPG card (gpg --card-status)
  6. Update the .gitconfig to use the new card ID.
  7. Set up the ~/.gnupg/sshcontrol file.
  8. Clone this repo to ~/dotfiles
  9. Execute the MacOS settings: ./.macos
  10. Install Tmux Plugin Manager (git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm) and then install plugins from within tmux (Ctrl-B shift+I)
  11. Install nix and nix-darwin.
  12. Execute darwin-rebuild switch to install packages.

Nix setup

Refer to https://hardselius.github.io/2020/nix-please/ and https://github.com/utdemir/dotfiles/blob/master/home.nix

Install nix

curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install

Install nix-darwin

nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer
./result/bin/darwin-installer
rm -rf result

Copy the darwin configuration from dotfiles

rm ~/nixpkgs/darwin-configuration.nix
ln ./dotfiles/.nixpkgs/darwin-configuration.nix ./.nixpkgs/

Further configuration

Find more packages with nix search <name> or by browsing https://github.com/NixOS/nixpkgs/tree/master/pkgs/

Once found, add them to the darwin-configuration.nix file and rebuild with darwin-rebuild switch --impure --flake ./#adrian-mac

Tasks

rebuild-mac

Env: NIXPKGS_ALLOW_UNFREE=1

darwin-rebuild switch --impure --flake ./#adrian-mac

rebuild-linux-install-hm

nix-channel --add https://github.com/nix-community/home-manager/archive/release-24.05.tar.gz home-manager
nix-channel --update

rebuild-linux

After first adding the home-manager channel.

Env: NIXPKGS_ALLOW_UNFREE=1

nix run home-manager/release-23.11 -- switch --impure --flake ./#adrian-linux

Other programs

  • ARM SDK
  • Affinity Designer
  • Affinity Photo
  • Amphetamine
  • Arduino IDE
  • Chrome
  • EAGLE
  • Flycut
  • Fritzing
  • Giphy capture
  • Little Snitch
  • Microsoft Remote Desktop
  • NoSQL Workbench DynamoDB
  • QMK Toolbox
  • Raspberry Pi Imager
  • Skype
  • Skype Meetings
  • Slack
  • SnowSQL
  • Spotify
  • Transporter
  • VLC
  • VMWare Fusion
  • VSCode
  • Wireshark
  • Yubico Authenticator

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published