Skip to content

Commit

Permalink
Add upgrade notes to README
Browse files Browse the repository at this point in the history
  • Loading branch information
iancleary committed Jun 5, 2023
1 parent 3748a3c commit 5d0f841
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions nixos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Welcome to my nixos-config!
Edit:

* update hostname
* add user to `vboxsf` group
* add user to `vboxsf` group (if in a virtualbox)
* add `just` to `environment.systemPackages`

Run:
Expand Down Expand Up @@ -47,11 +47,27 @@ sudo cp /mnt/shared/authorized_keys /etc/nixos/ssh/authorized_keys
## Home Manager

```bash
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-22.11.tar.gz home-manager
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
sudo nix-channel --update
```

It is then possible to add

`imports = [ <home-manager/nixos> ];`
to your system configuration.nix file, which will introduce a new NixOS option called home-manager.users whose type is an attribute set that maps user names to Home Manager configurations.

## Upgrade to 23.05

<https://nix-community.github.io/home-manager/index.html#sec-install-nixos-module>

```bash
sudo nix-channel --add https://github.com/nix-community/home-manager/archive/release-23.05.tar.gz home-manager
sudo nix-channel --update
```

<https://nixos.org/manual/nixos/stable/index.html#sec-upgrading>

```bash
sudo nix-channel --add https://channels.nixos.org/nixos-23.05 nixos
nixos-rebuild switch --upgrade
```

0 comments on commit 5d0f841

Please sign in to comment.