Ajout de la docs pour home manager
This commit is contained in:
parent
6d12acaf96
commit
e018164949
3 changed files with 60 additions and 0 deletions
18
docs/HOME.md
18
docs/HOME.md
|
@ -13,8 +13,26 @@ Je suis encore en train de découvrir son fonctionnement donc si la documentatio
|
|||
>
|
||||
> Contient l'ensemble des infos du packet vscode version 1.74.3
|
||||
|
||||
- **nix-channel**
|
||||
|
||||
> Un peu comme les repos sous Arch comme le repo multilib, docker, ...
|
||||
|
||||
- [**Home-Manager**](./home_manager/HOME.md)
|
||||
|
||||
> Permet d'installer des paquets uniquement pour un utilisateur spécifique
|
||||
>
|
||||
> Permet de gérer les dotfiles
|
||||
|
||||
# Commande utiles
|
||||
|
||||
```bash
|
||||
nixos-version
|
||||
```
|
||||
|
||||
```bash
|
||||
nix-channel [--list/remove/add] url name
|
||||
```
|
||||
|
||||
## nixos-rebuild
|
||||
|
||||
Reconstruire depuis /etc/nixos/configuration.nix
|
||||
|
|
18
docs/home_manager/HOME.md
Normal file
18
docs/home_manager/HOME.md
Normal file
|
@ -0,0 +1,18 @@
|
|||
# Home manager
|
||||
|
||||
Inutile si on utilise flakes
|
||||
|
||||
## Installation
|
||||
|
||||
*sudo si l'on souhaite utiliser le module NixOS depuis /etc/nixos/configuration.nix*
|
||||
```bash
|
||||
nix-channel --add https://github.com/nix-community/home-manager/archive/master.tar.gz home-manager
|
||||
```
|
||||
or
|
||||
```bash
|
||||
nix-channel --add https://github.com/nix-community/home-manager/archive/release-${NIX_VERSION}.tar.gz home-manager
|
||||
```
|
||||
|
||||
```bash
|
||||
nix-channel --update
|
||||
```
|
24
docs/nix/HOME.md
Normal file
24
docs/nix/HOME.md
Normal file
|
@ -0,0 +1,24 @@
|
|||
# NIX syntaxe
|
||||
|
||||
|
||||
### Declarer des variables dans un "scope"
|
||||
```nix
|
||||
let
|
||||
[name]=[value];
|
||||
in
|
||||
{
|
||||
...
|
||||
}
|
||||
```
|
||||
|
||||
### Keyword `with`
|
||||
|
||||
Sans
|
||||
```nix
|
||||
mavar = [ pkgs.htop ];
|
||||
```
|
||||
|
||||
Avec
|
||||
```nix
|
||||
mavar = with pkgs; [ htop ];
|
||||
```
|
Loading…
Reference in a new issue