Ajout de la docs pour home manager

This commit is contained in:
Florian RICHER 2023-02-01 22:13:01 +01:00
parent 6d12acaf96
commit e018164949
3 changed files with 60 additions and 0 deletions

24
docs/nix/HOME.md Normal file
View 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 ];
```