priodani diakritiky
This commit is contained in:
parent
8de9dcc2be
commit
b53067e386
@ -30,7 +30,7 @@ footer: "Albert Vala, Filip Kohout, Nix flakes & Nix command"
|
|||||||
|
|
||||||
# Nix Command
|
# Nix Command
|
||||||
|
|
||||||
* Nove nix cli
|
* Nové nix cli
|
||||||
* Flake support
|
* Flake support
|
||||||
|
|
||||||
---
|
---
|
||||||
@ -49,17 +49,17 @@ nix run nixpkgs#cowsay #New
|
|||||||
|
|
||||||
| Command | Na |
|
| Command | Na |
|
||||||
| ------------ | ---------------------------------- |
|
| ------------ | ---------------------------------- |
|
||||||
| flake new | Vytvoreni flaky z template |
|
| flake new | Vytvoření flaky z template |
|
||||||
| develop | Build environment shell |
|
| develop | Build environment shell |
|
||||||
| shell | temp shell s nejakym programem |
|
| shell | temp shell s nějakým programem |
|
||||||
| config check | Check configu na potencialni chyby |
|
| config check | Check configu na potenciální chyby |
|
||||||
| run | Spusti output z flaky |
|
| run | Spustí output z flaky |
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
# Flakes
|
# Flakes
|
||||||
|
|
||||||
* ## Proc?
|
* ## Proč?
|
||||||
|
|
||||||
* Lockfiles.
|
* Lockfiles.
|
||||||
* Flake inputs
|
* Flake inputs
|
||||||
@ -83,9 +83,8 @@ nix flake show github:kamadorueda/alejandra
|
|||||||
|
|
||||||
# Jak pouzit flakes na system configuraci?
|
# Jak pouzit flakes na system configuraci?
|
||||||
|
|
||||||
* Flake je jen cast zbytek je v normalnich nix filech
|
* Flakes používáme jen na management input a output atributů
|
||||||
* Zbytek konfigurace bere inputy z flaky.
|
* Zbytek konfigurace používá inputy definované ve flake.nix
|
||||||
* Neprijdeme o nic jen mame lock file a moznost flake jako inputu
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
@ -156,11 +155,10 @@ nix flake show github:kamadorueda/alejandra
|
|||||||
* lock aktuální verze
|
* lock aktuální verze
|
||||||
* `nix flake update` - aktualizace všech vstupů
|
* `nix flake update` - aktualizace všech vstupů
|
||||||
* `nix flake update [home-manager]` - aktualizace jednoho vstupu
|
* `nix flake update [home-manager]` - aktualizace jednoho vstupu
|
||||||
* `nix flake show` - zobrazí flake strukturu
|
|
||||||
|
|
||||||
```nix
|
```nix
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
|
nixpkgs-stable.url = "github:nixos/nixpkgs/nixos-24.11";
|
||||||
nixpkgs-current = "github:nixos/nixpkgs?ref=3058cf84bce1aba7b1820cb24319a171572217ba-dirty";
|
nixpkgs-current = "github:nixos/nixpkgs?ref=3058cf84bce1aba7b1820cb24319a171572217ba-dirty";
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user