mirror of
https://github.com/sstent/nixfotfiles_1.git
synced 2026-01-25 14:42:18 +00:00
fix formatting
This commit is contained in:
19
README.md
19
README.md
@@ -1,28 +1,28 @@
|
||||
# nixpkgs
|
||||
|
||||
|
||||
##install NIX
|
||||
## Install NIX
|
||||
```
|
||||
sh <(curl -L https://nixos.org/nix/install) --no-daemon
|
||||
```
|
||||
|
||||
##enable profile
|
||||
## Enable profile
|
||||
```
|
||||
. /home/sstent/.nix-profile/etc/profile.d/nix.sh
|
||||
```
|
||||
|
||||
##Setup channels and enable path
|
||||
## Setup channels and enable path
|
||||
```
|
||||
nix-channel --add https://github.com/rycee/home-manager/archive/master.tar.gz home-manager
|
||||
nix-channel --update
|
||||
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
|
||||
```
|
||||
###setup ssh keys
|
||||
### Setup ssh keys
|
||||
```
|
||||
nix-shell -p wget p7zip socat
|
||||
```
|
||||
|
||||
##inside SHELL
|
||||
## Inside SHELL
|
||||
```
|
||||
wget https://github.com/rupor-github/wsl-ssh-agent/releases/download/v1.5.2/wsl-ssh-agent.zip -P /tmp
|
||||
mkdir -p ~/bin
|
||||
@@ -34,28 +34,29 @@ touch $HOME/.ssh/agent.sock
|
||||
ssh-add -l
|
||||
exit
|
||||
```
|
||||
## Check keys loaded
|
||||
```
|
||||
ssh-add -l
|
||||
```
|
||||
|
||||
|
||||
## Install Home Manager
|
||||
```
|
||||
nix-shell '<home-manager>' -A install
|
||||
```
|
||||
|
||||
|
||||
##grab config
|
||||
## Grab config repo
|
||||
```
|
||||
rm -f /home/sstent/.config/nixpkgs/home.nix
|
||||
git clone git@github.com:sstent/nixpkgs.git /home/sstent/.config/nixpkgs
|
||||
```
|
||||
|
||||
#enable profile
|
||||
## Enable profile
|
||||
```
|
||||
home-manager switch -b backup
|
||||
```
|
||||
|
||||
#updates
|
||||
# Updates
|
||||
```
|
||||
home-manager switch
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user