guix docs

This commit is contained in:
Cyryl Płotnicki 2022-07-31 09:34:40 +01:00
parent ae92d85e19
commit 5d4d5353e5
2 changed files with 13 additions and 39 deletions

View File

@ -199,42 +199,3 @@ specialArgs = { inherit inputs; };
};
```
## Ubuntu
```
sudo apt install git vim curl
curl -L https://nixos.org/nix/install | sh
```
make sure
```
if [ -e /home/cyryl/.nix-profile/etc/profile.d/nix.sh ]; then . /home/cyryl/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer
export NIX_PATH=$HOME/.nix-defexpr/channels${NIX_PATH:+:}$NIX_PATH
``` is in `~/.profile`
```
reboot
```
```
nix-shell '<home-manager>' -A install
```
```
mkdir dev
cd dev
git clone https://git.sr.ht/~cyplo/dotfiles
cd dotfiles
```
```
ln -vfs /home/cyryl/dev/dotfiles/nixos/home-other-os.nix /home/cyryl/.config/nixpkgs/home.nix
home-manager switch
```
## guix
I'm just starting to play with guix, these are just loose notes:

View File

@ -1 +1,14 @@
## new machine
```
guix pull
hash guix
guix shell git
git clone https://git.sr.ht/~cyplo/dotfiles
guix pull --channels=/home/cyryl/dev/dotfiles/guix/channels.scm
guix system reconfigure /etc/config.scm
# merge /etc/config.scm into /home/cyryl/dev/dotfiles/guix/vm/config.scm
guix system reconfigure /home/cyryl/dev/dotfiles/guix/vm/config.scm
guix home reconfigure /home/cyryl/dev/dotfiles/guix/home-configuration.scm
```