NixOS as a desktop/pt: Difference between revisions

Cybergui (talk | contribs)
Created page with "O segundo video, começando a partir de 27 minutos, também é uma introdução e um guia para configurar o Home Manager."
Cybergui (talk | contribs)
No edit summary
 
(16 intermediate revisions by the same user not shown)
Line 29: Line 29:
O [[Wil_T_Nix_Guides#NixOS_Installation_Guide|segundo video]], começando a partir de 27 minutos, também é uma introdução e um guia para configurar o Home Manager.
O [[Wil_T_Nix_Guides#NixOS_Installation_Guide|segundo video]], começando a partir de 27 minutos, também é uma introdução e um guia para configurar o Home Manager.


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Modularizing_your_configuration"></span>
== Modularizing your configuration ==
== Gerenciando sua configuração ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="With_NixOS_Modules"></span>
=== With NixOS Modules ===
=== Com os Modulos NixOS ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
configuration.nix é uma instancia do [[NixOS modules|NixOS module]], que facilita a divisão da sua configuração em vários arquivos. Os módulos podem:
configuration.nix is an instance of a [[NixOS modules|NixOS module]], which makes it easy to break your configuration into several files. Modules can:
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
* Importar outros módulos
* Import other modules
* Declarar novas opções
* Declare new options
* Fornecer valores para as opções (é o que a maior parte do seu configuration.nix padrão faz)
* Provide values for options (this is what most of your default configuration.nix does)
* Referenciar valores de opções de outros módulos (via the <code>config</code> attribute passed to all modules)
* Reference option values from other modules (via the <code>config</code> attribute passed to all modules)
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Desde que você declare opções para quaisquer valores que queira compartilhar entre os módulos, você pode dividir sua configuração como quiser em arquivos que são importados, direta ou transitivamente, pelo seu arquivo root configuration.nix. Você também pode importar módulos de fontes remotas, usando funções como <code>builtins.fetchTarball</code>. Veja o [[NixOS modules|wiki page]] ou o [https://nixos.org/manual/nixos/stable/#sec-writing-modules NixOS manual] para mais informações
As long as you declare options for any values you want to share between modules, you can divide your configuration however you like into files that get imported, directly or transitively, by your root configuration.nix file. You can also import modules from remote sources, using functions like <code>builtins.fetchTarball</code>. See the [[NixOS modules|wiki page]] or the [https://nixos.org/manual/nixos/stable/#sec-writing-modules NixOS manual] for more information.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="With_Flakes"></span>
=== With Flakes ===
=== Com Flakes ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Se você quer uma composição de Configuração do NixOS, ainda experimental [[Flakes]] está causando muita excitação na comunidade. Gerenciar flocos requer um bom entendimento básico e alguma experiência prática com o ecossistema Nix.
If you want a more composable<sup>[citation needed]</sup> NixOS configuration setup, the still-experimental [[Flakes]] feature is causing a lot of excitement in the community. Managing flakes requires a good basic understanding and some existing hands on experience with the Nix ecosystem.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Video_guide"></span>
==== Video guide ====
=== Guia em Video ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Videos [[Wil_T_Nix_Guides#Intro_to_Flakes|seven]] e [[Wil_T_Nix_Guides#Moving_NixOS_System_Configuration_into_a_Flake|eight]] da série original de 8 partes de Wil T é uma boa visão geral do que os Flakes permitem e como começar a usá-los.
Videos [[Wil_T_Nix_Guides#Intro_to_Flakes|seven]] and [[Wil_T_Nix_Guides#Moving_NixOS_System_Configuration_into_a_Flake|eight]] of Wil T's original 8-part series are a good overview of what Flakes enable and how to get started with them.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Beyond_initial_setup"></span>
== Beyond initial setup ==
== Além da configuração inicial ==
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Depois de se familiarizar com o ecossistema Nix e ter uma instalação funcional do NixOS para desktop, você provavelmente se interessará por personalizações e configurações mais detalhadas.
After you are familiar with the Nix ecosystem and have a functional desktop install of NixOS, you will likely be interested in customizations and more detailed setup.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<span id="Learn_by_example"></span>
=== Learn by example ===
=== Aprenda com exemplos ===
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Se você se sente confortável gerenciando seu sistema por meio de um repositório git usando flakes, há muitos repositórios com os quais você pode aprender agora!  
If you are comfortable managing your system through a git repo using flakes, then there are many repositories you can learn from now!
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Confira [[Comparison of NixOS setups]] para uma tabela comparando algumas opções populares.
Check out [[Comparison of NixOS setups]] for a table comparing some popular choices.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Veja [[Configuration Collection]] para uma longa lista dentro do wiki.
See [[Configuration Collection]] for a long list within the wiki.
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
Além disso, as seguintes pesquisas de tópicos no Github devem revelar muitos exemplos úteis.
Additionally, the following topic searches on Github should uncover many useful examples.
  * nix-flake
* [https://github.com/topics/nix-flake nix-flake]
  * nixos-configuration
* [https://github.com/topics/nixos-configuration nixos-configuration]
  * nixos-dotfiles
* [https://github.com/topics/nixos-dotfiles nixos-dotfiles]
</div>


[[Category:Desktop]]
[[Category:Desktop]]
[[Category:Guide]]
[[Category:Guide]]