mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
readme: add 'console' syntax highlighting
(cherry picked from commit e1bceb2adb
)
This commit is contained in:
parent
c9d0e3ee29
commit
4ccd4b9ccc
1 changed files with 8 additions and 8 deletions
16
README.md
16
README.md
|
@ -39,7 +39,7 @@ Currently the easiest way to install Home Manager is as follows:
|
||||||
1. Make sure you have a working Nix installation. If you are not
|
1. Make sure you have a working Nix installation. If you are not
|
||||||
using NixOS then you may here have to run
|
using NixOS then you may here have to run
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ mkdir -m 0755 -p /nix/var/nix/{profiles,gcroots}/per-user/$USER
|
$ mkdir -m 0755 -p /nix/var/nix/{profiles,gcroots}/per-user/$USER
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -49,13 +49,13 @@ Currently the easiest way to install Home Manager is as follows:
|
||||||
2. Clone the Home Manager repository into the `~/.config/nixpkgs`
|
2. Clone the Home Manager repository into the `~/.config/nixpkgs`
|
||||||
directory:
|
directory:
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ git clone -b master https://github.com/rycee/home-manager ~/.config/nixpkgs/home-manager
|
$ git clone -b master https://github.com/rycee/home-manager ~/.config/nixpkgs/home-manager
|
||||||
```
|
```
|
||||||
|
|
||||||
or
|
or
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ git clone -b release-17.03 https://github.com/rycee/home-manager ~/.config/nixpkgs/home-manager
|
$ git clone -b release-17.03 https://github.com/rycee/home-manager ~/.config/nixpkgs/home-manager
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ Currently the easiest way to install Home Manager is as follows:
|
||||||
|
|
||||||
4. Install the `home-manager` package:
|
4. Install the `home-manager` package:
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ nix-env -f '<nixpkgs>' -iA home-manager
|
$ nix-env -f '<nixpkgs>' -iA home-manager
|
||||||
installing ‘home-manager’
|
installing ‘home-manager’
|
||||||
```
|
```
|
||||||
|
@ -123,13 +123,13 @@ First create a file `~/.config/nixpkgs/home.nix` containing
|
||||||
|
|
||||||
To activate this configuration you can then run
|
To activate this configuration you can then run
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ home-manager switch
|
$ home-manager switch
|
||||||
```
|
```
|
||||||
|
|
||||||
or if you are not feeling so lucky,
|
or if you are not feeling so lucky,
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ home-manager build
|
$ home-manager build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -139,7 +139,7 @@ activation script and the generated home directory files.
|
||||||
To see available configuration options with descriptions
|
To see available configuration options with descriptions
|
||||||
and usage examples run
|
and usage examples run
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ man home-configuration.nix
|
$ man home-configuration.nix
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -173,7 +173,7 @@ For example, suppose you have a wonderful, painstakingly created
|
||||||
to your configuration. Attempting to switch to the generation will
|
to your configuration. Attempting to switch to the generation will
|
||||||
then result in
|
then result in
|
||||||
|
|
||||||
```
|
```console
|
||||||
$ home-manager switch
|
$ home-manager switch
|
||||||
…
|
…
|
||||||
Activating checkLinkTargets
|
Activating checkLinkTargets
|
||||||
|
|
Loading…
Reference in a new issue