https://github.com/gil0mendes/dotfiles
My Darwin Nix system configs!
https://github.com/gil0mendes/dotfiles
dotfiles nix tmux vim zsh
Last synced: about 1 year ago
JSON representation
My Darwin Nix system configs!
- Host: GitHub
- URL: https://github.com/gil0mendes/dotfiles
- Owner: gil0mendes
- License: gpl-3.0
- Created: 2019-11-03T19:20:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-11T17:38:12.000Z (about 1 year ago)
- Last Synced: 2025-05-01T01:53:40.362Z (about 1 year ago)
- Topics: dotfiles, nix, tmux, vim, zsh
- Language: Nix
- Homepage:
- Size: 290 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# My Personal Nix configs
## Requirements
In order to install this dotfiles you must to already have installed:
- https://brew.sh
- https://nixos.org/download/
## Installation
```bash
# clone this repository into ~/.dotfiles
git clone git@github.com:gil0mendes/dotfiles.git ~/.dotfiles
# install nix pkg manager
curl -L https://nixos.org/nix/install | sh
# close and open a new terminal
# configure nix to use flakes
mkdir -p ~/.config/nix
cat < ~/.config/nix/nix.conf
experimental-features = nix-command flakes
EOF
# Until this is addressed https://github.com/LnL7/nix-darwin/issues/149
sudo mv /etc/nix/nix.conf /etc/nix/.nix-darwin.bkp.nix.conf
# Build the configuration
cd ~/.dotfiles
nix build .#darwinConfigurations.g0m.system
# Enable the configuration
./result/sw/bin/darwin-rebuild switch --flake .#g0m
```
For rebuilding the configuration run:
```bash
darwin-rebuild switch --flake .#g0m
```
### Extra steps for Kanata
In order to use Kanata we need to manually install the [VirtualHIDDevice](https://github.com/pqrs-org/Karabiner-DriverKit-VirtualHIDDevice) driver.
After install the driver execute this command:
```sh
/Applications/.Karabiner-VirtualHIDDevice-Manager.app/Contents/MacOS/Karabiner-VirtualHIDDevice-Manager activate
```
## Maintenance
### Upgrade Nix
```sh
sudo -i sh -c 'nix-channel --update && nix-env -iA nixpkgs.nix && launchctl remove org.nixos.nix-daemon && launchctl load /Library/LaunchDaemons/org.nixos.nix-daemon.plist'
```
### Update flake inputs
```sh
flakeup
```
## Inspiration
- https://github.com/malob/nixpkgs
- https://gitlab.com/gil0mendes/dotfiles/