Skip to content

Repository files navigation

madeddie nix config for darwin-nix and nix-on-droid

These configs can be used to set up my Android terminal and MacOS machines.

Steps to initialize on MacOS

  1. install Nix or a derivative like Determinate or Lix
  2. Copy SSH key with access to GitHub to ~/.ssh/
    git clone git@github.com:madeddie/home-manager.git ~/.config/home-manager
    sudo ln -s /Users/edwin/.config/home-manager/nix-darwin /etc/nix-darwin
    nix run nix-darwin/master#darwin-rebuild -- switch
    darwin-rebuild switch

Steps to initialize on Android

  1. Install the termux forked UI https://f-droid.org/en/packages/com.termux.nix
  2. Copy SSH key with access to GitHub to ~/.ssh/
    nix shell nixpkgs\#git nixpkgs\#openssh
    git clone git@github.com:madeddie/home-manager.git ~/.config/home-manager
    rm -rf ~/.config/nix-on-droid
    ln -s ~/.config/home-manager/nix-on-droid ~/.config/nix-on-droid
    nix-on-droid switch --flake ~/.config/nix-on-droid

Steps to initialize Home Manager

    nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
    nix-channel --update
    nix run home-manager/master -- switch
    home-manager switch

Other requirements

The nix-darwin setup installs packages using Homebrew, so it's good to have this installed before starting:

    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

About

madeddie's Nix Home Manager configuration

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages