NixOS as a desktop/pl: Difference between revisions

Alxhr0 (talk | contribs)
Created page with "configuration.nix to instancja NixOS moduł, który ułatwia rozbicie konfiguracji na kilka plików. Moduły mogą:"
Tags: Mobile edit Mobile web edit
FuzzyBot (talk | contribs)
Updating to match new version of source page
Tags: Mobile edit Mobile web edit
 
(31 intermediate revisions by one other user not shown)
Line 1: Line 1:
<languages/>
<languages/>
<div class="mw-translate-fuzzy">
NixOS może być używany do wielu rzeczy, Jeżeli chcesz używać go jako głowny system do codziennego użytku (bezpośrednio na komputerze lub jako wirtualną maszyne), ta strona jest dla ciebie, Nawet jeżeli twoje ambicje to używanie NixOS w chmurze lub specjalnie skonfigurowanych serwerach, możesz chcieć sie zapoznać z lekcjami które są tutaj aby bardziej sie zapoznać z ekosystemem Nix
</div>
<span id="Installation"></span>
== Instalacja ==
<div class="mw-translate-fuzzy">
Jeśli wolisz czytać, zobacz [[NixOS Installation Guide]], aby rozpocząć. Dobrze prezentowana opcja wideo znajduje się w sekcji przewodnika wideo bezpośrednio poniżej. Należy pamiętać, że w przypadku instalacji stacjonarnej prawdopodobnie będziesz chciał upewnić się, że zaczniesz od co najmniej 30 GiB dostępnej przestrzeni dysku, aby umożliwić środowiska graficzne (np. GNOME, KDE lub XFCE), przeglądarki (np. Firefox), oraz inne aplikacje graficzne (np. VSCode), które byłyby typowe dla codziennego użycia. 15 GiB może wystarczyć na bardzo lekki system.
</div>
<span id="Managing_your_configuration"></span>
== Zarządzanie konfiguracją ==
<div class="mw-translate-fuzzy">
Możliwe jest zarządzanie całą konfiguracją przy użyciu metod udokumentowanych w [https://nixos.org/manual/nixos/stable/index.html NixOS official manual]. Jednak większość członków społeczności, którzy używają NixOS na pulpicie, woli zarządzać swoimi konfiguracjami użytkownika (np. „dotfiles”) przy użyciu [[Home Manager]] (potrzebne cytowanie). Home Manager to narzędzie dla użytkownika do deklarowania tego, co chcesz i jak chcesz to skonfigurować, a zatem byłby używany zamiast większości ustawień, które w innym przypadku umieściłbyś w [https://nixos.org/manual/nixos/stable/#sec-changing-config configuration.nix] lub przez [[FAQ#How_can_I_manage_software_with_nix-env_like_with_configuration.nix.3F|nix-env]]
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
The process for managing your configuration is documented in the {{NixOS Manual|name=NixOS official manual|anchor=#ch-configuration}}.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
=== System Configuration ===
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{main|NixOS system configuration}}
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
The primary configuration file, <code>/etc/nixos/configuration.nix</code>, defines system-wide settings. This includes options like enabling services, managing system users, setting hardware options, and specifying installed packages. Changes are applied with:
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<syntaxhighlight lang="console">
# nixos-rebuild switch
</syntaxhighlight>
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
=== User configuration with Home Manager ===
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
For managing per-user configurations such as application preferences, command-line tools, and dotfiles, [[Home Manager]] provides a convenient, declarative approach. It allows users to define which programs should be installed and how they should be configured, without needing to include those settings in the system-wide [https://nixos.org/manual/nixos/stable/#sec-changing-config configuration.nix].
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
NixOS can be used for many purposes. If you want to use it as a primary desktop operating system for your daily use (either on bare metal or as a [https://twitter.com/mitchellh/status/1346136404682625024 secondary VM]), this page is for you. Even if your ambitions are to use NixOS in the cloud or on specially configured servers, you may want to start with the lessons outlined here in order to get more generally familiar with the Nix ecosystem.
Home Manager can be used independently of the system configuration and works with both traditional setups and newer [[Flakes]]-based configurations.
</div>
</div>


<span id="Installation"></span>
<span id="With_Flakes"></span>
Instalacja
=== Z Flakes ===


<span id="Wiki_method"></span>
<div class="mw-translate-fuzzy">
Metoda Wiki
Jeśli chcesz bardziej czystą konfigurację NixOS, wciąz eksperymentalna funckja [[Flakes]] powoduje wiele emocji w społeczności. Zarządzanie Flakes wymaga dobrego podstawowego zrozumienia i niektórych istniejących doświadczeń z ekosystemem Nix.
</div>


Jeśli wolisz czytać, zobacz [[NixOS Installation Guide]], aby rozpocząć. Dobrze prezentowana opcja wideo znajduje się w sekcji przewodnika wideo bezpośrednio poniżej. Należy pamiętać, że w przypadku instalacji stacjonarnej prawdopodobnie będziesz chciał upewnić się, że zaczniesz od co najmniej 30 GiB dostępnej przestrzeni dysku, aby umożliwić środowiska graficzne (np. GNOME, KDE lub XFCE), przeglądarki (np. Firefox), oraz inne aplikacje graficzne (np. VSCode), które byłyby typowe dla codziennego użycia. 15 GiB może wystarczyć na bardzo lekki system.
<div lang="en" dir="ltr" class="mw-content-ltr">
Refer to [[NixOS system configuration#Defining NixOS as a flake]] for details on getting started.
</div>


<span id="Video_guide"></span>
<span id="Beyond_initial_setup"></span>
Instrukcja wideo
== Po początkowej konfiguracji ==


Po przewodnik wizualny zobacz [[Wil T Nix Guides]]. [[Wil_T_Nix_Guides#NixOS_Installation_Guide|second video]] to instrukcja instalacji. Ta 8-częściowa seria, wyprodukowana na początku 2021 r., Obejmuje również wszystkie podstawy używania NixOS jako systemu stacjonarnego i konfigurowania go według własnych upodobań.
<div class="mw-translate-fuzzy">
Po zapoznaniu się z ekosystemem Nix i masz funkcjonalną instalację systemu NixOS, prawdopodobnie będziesz zainteresowany dostosowaniem i bardziej szczegółową konfiguracją.
</div>


<span id="Managing_your_configuration"></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
Zarządzanie konfiguracją
Common configuration areas include:
</div>


Możliwe jest zarządzanie całą konfiguracją przy użyciu metod udokumentowanych w [https://nixos.org/manual/nixos/stable/index.html NixOS official manual]. Jednak większość członków społeczności, którzy używają NixOS na pulpicie, woli zarządzać swoimi konfiguracjami użytkownika (np. „dotfiles”) przy użyciu [[Home manager]] (potrzebne cytowanie). Home Manager to narzędzie dla użytkownika do deklarowania tego, co chcesz i jak chcesz to skonfigurować, a zatem byłby używany zamiast większości ustawień, które w innym przypadku umieściłbyś w [https://nixos.org/manual/nixos/stable/#sec-changing-config configuration.nix] lub przez [[FAQ#How_can_I_manage_software_with_nix-env_like_with_configuration.nix.3F|nix-env]]
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Desktop Environments ====
</div>


<span id="Video_guide"></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
Instrukcja wideo
Install and configure full-featured environments such as [[GNOME]], [[KDE Plasma]], or [[Xfce]].
</div>


Przewodniki Wil T to równa mieszanka:
<div lang="en" dir="ltr" class="mw-content-ltr">
# Praktyczne bootstraphowanie, aby móc bardzo pojemne zarządzać systemem za pomocą Home Manager, wersji git i ostatecznie Flakes.
See [[:Category:Desktop environment]] for a full list.
# Przegląd koncepcji i ogólna ekspozycja ekosystemu Nix, społeczności i dostępnych zasobów.
</div>


[[Wil_T_Nix_Guides#NixOS_Installation_Guide|Drugi film]] zaczynając od około 27 minut, jest również wprowadzeniem do konfiguracji konfiguracji Home Manager
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Window Managers ====
</div>


<span id="Modularizing_your_configuration"></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
Modularyzowanie konfiguracji
Set up lightweight or tiling window managers like [[i3]], [[Sway]], [[Hyprland]], or [[xmonad]].
</div>


<span id="With_NixOS_Modules"></span>
<div lang="en" dir="ltr" class="mw-content-ltr">
Z modułami NixOS
See [[:Category:Window managers]] for a full list.
</div>


configuration.nix to instancja [[NixOS modules|NixOS moduł]], który ułatwia rozbicie konfiguracji na kilka plików. Moduły mogą:
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Display Managers (Login Managers) ====
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
* Import other modules
Configure graphical session managers such as [[Gnome|GDM]], [[KDE|SDDM]], or [[LightDM]].
* Declare new options
* Provide values for options (this is what most of your default configuration.nix does)
* Reference option values from other modules (via the <code>config</code> attribute passed to all modules)
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
==== Audio Setup ====
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
=== With Flakes ===
Enable and configure [[:Category:Audio|audio]] systems like [[PipeWire]], [[PulseAudio]], or [[ALSA]].
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
==== Network Management ====
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
==== Video guide ====
Use tools such as [[NetworkManager]] or [[systemd-networkd]] for managing [[Networking|network]] connections.
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
==== Bluetooth Support ====
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
== Beyond initial setup ==
Set up [[Bluetooth]] with blueman or other management tools.
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
==== Power Management ====
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
=== Learn by example ===
Configure [[laptop]] [[Power Management|battery management]], suspend, and hibernation with tools like [[Laptop#tlp|tlp]] or [[systemd]] services.
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
If you are comfortable managing your system through a git repo using flakes, then there are many repositories you can learn from now!
==== Printing and Scanning ====
</div>  
</div>  


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
Check out [[Comparison of NixOS setups]] for a table comparing some popular choices.
Enable [[Cups]] for printer support and tools like Sane for [[Scanners|scanning]] devices.
</div>
 
<span id="Tips_and_tricks"></span>
<div class="mw-translate-fuzzy">
== Modularyzowanie konfiguracji ==
</div>
 
<span id="Modularizing_your_configuration_with_modules"></span>
<div class="mw-translate-fuzzy">
=== Z modułami NixOS ===
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div lang="en" dir="ltr" class="mw-content-ltr">
See [[Configuration Collection]] for a long list within the wiki.
{{main|NixOS system configuration#Modularizing your configuration with modules}}
</div>
 
<span id="See_also"></span>
<div class="mw-translate-fuzzy">
=== Nauka na przykładzie ===
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
<div class="mw-translate-fuzzy">
Additionally, the following topic searches on Github should uncover many useful examples.
Sprawdź [[Comparison of NixOS setups]] dla tabeli porównującej popularne opcje.
* [https://github.com/topics/nix-flake nix-flake]
* [https://github.com/topics/nixos-configuration nixos-configuration]
* [https://github.com/topics/nixos-dotfiles nixos-dotfiles]
</div>
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
[[Category:Desktop]]
[[Category:Desktop]]
[[Category:Guide]]
[[Category:Guide]]
[[Category:NixOS]]
</div>