Update readme
This commit is contained in:
parent
22bad0de92
commit
6154e38eec
|
@ -37,8 +37,9 @@ curl https://raw.githubusercontent.com/hlissner/dotfiles/nixos/deploy | sh
|
||||||
Which is equivalent to:
|
Which is equivalent to:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
USER=${USER:-hlissner}
|
||||||
DOTFILES=/home/$USER/.dotfiles
|
DOTFILES=/home/$USER/.dotfiles
|
||||||
git clone https://github.com/hlissner/dotfiles $DOTFILES
|
git clone https://github.com/hlissner/dotfiles /etc/dotfiles
|
||||||
ln -s /etc/dotfiles $DOTFILES
|
ln -s /etc/dotfiles $DOTFILES
|
||||||
chown -R $USER:users $DOTFILES
|
chown -R $USER:users $DOTFILES
|
||||||
|
|
||||||
|
@ -51,9 +52,6 @@ nix-channel --add "https://nixos.org/channels/nixpkgs-unstable" nixpkgs-unstable
|
||||||
nixos-generate-config --root /mnt
|
nixos-generate-config --root /mnt
|
||||||
echo "import /etc/dotfiles \"$$(hostname)\"" >/mnt/etc/nixos/configuration.nix
|
echo "import /etc/dotfiles \"$$(hostname)\"" >/mnt/etc/nixos/configuration.nix
|
||||||
|
|
||||||
# make secrets.nix
|
|
||||||
nix-shell -p gnupg --run "gpg -dq secrets.nix.gpg >secrets.nix"
|
|
||||||
|
|
||||||
# make install
|
# make install
|
||||||
nixos-install --root /mnt -I "my=/etc/dotfiles"
|
nixos-install --root /mnt -I "my=/etc/dotfiles"
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue