This commit is contained in:
Sridhar Ratnakumar 2021-09-11 22:53:55 -04:00
parent e9b3e28af6
commit cbddd4b812
2 changed files with 14 additions and 2 deletions

View file

@ -1,5 +1,17 @@
include /etc/lsb-release
export $(shell sed 's/=.*//' /etc/lsb-release)
all:
sudo nixos-rebuild switch -j auto && systemctl restart --user emanote
# FIXME: Should just check for nixos instead.
@if [ "${DISTRIB_ID}" = "Ubuntu" ]; then \
make home;\
else \
make nixos;\
fi
nixos:
sudo nixos-rebuild switch -j auto
systemctl restart --user emanote
# Not sure why this doesn't reliably work
homeBroken:

View file

@ -11,7 +11,7 @@ First time run,
```
ln -s /path/to/here ~/.config/nixpkgs # Why? See Makefile
make home
make
```
Afterwards, feel free to use `home-manager switch`.