mirror of
https://github.com/madeddie/home-manager.git
synced 2026-06-09 08:55:27 -04:00
madeddie's Nix Home Manager configuration
- Nix 60.5%
- Shell 39.5%
|
|
||
|---|---|---|
| dotfiles | ||
| nix-darwin | ||
| nix-on-droid | ||
| secrets | ||
| .sops.yaml | ||
| common.nix | ||
| flake.lock | ||
| flake.nix | ||
| home_edwinATEdwins-MacBook-Air.local.nix | ||
| home_madeddieATmaddock.nix | ||
| home_nix-on-droid.nix | ||
| README.md | ||
| renovate.json | ||
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
- install Nix or a derivative like Determinate or Lix
- 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
- Install the termux forked UI https://f-droid.org/en/packages/com.termux.nix
- 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)"