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
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…
Add table
Add a link
Reference in a new issue