Skip to content

Commit

Permalink
Merge pull request #248 from himkt/feat/nix
Browse files Browse the repository at this point in the history
deps: add nix
  • Loading branch information
himkt authored Dec 2, 2024
2 parents 8436f4c + 5975ed7 commit d1c3a02
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ cargo: cargo_clean
git: git_clean
$(PWD)/git/bin/setup.sh

nix: nix_clean
$(PWD)/nix/bin/setup.sh

nvim: nvim_clean
$(PWD)/nvim/bin/setup.sh

Expand Down Expand Up @@ -75,6 +78,10 @@ git_clean:
rm -rf $(HOME)/.config/git/config
rm -rf $(HOME)/.config/git/ignore

nix_clean:
# TODO(himkt); uninstall nix itself.
rm -rf $(HOME)/.config/nix

nvim_clean:
rm -rf $(HOME)/.vimrc
rm -rf $(HOME)/.vim
Expand Down
4 changes: 4 additions & 0 deletions nix/bin/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

mkdir -p $HOME/.config/nix
ln -s $PWD/nix/config.d/nix.conf $HOME/.config/nix
1 change: 1 addition & 0 deletions nix/config.d/nix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
experimental-features = flakes nix-command

0 comments on commit d1c3a02

Please sign in to comment.