{"id":492192,"date":"2026-08-25T16:31:28","date_gmt":"2026-08-25T16:31:28","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=492192"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=492192","title":{"rendered":"\u041f\u0440\u043e\u0441\u0442\u0430\u044f \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u0430\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 NixOs, \u0447\u0430\u0441\u0442\u044c 1 \u2014 \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u044b\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c <a href=\"https:\/\/habr.com\/ru\/articles\/1073844\/\" rel=\"noopener noreferrer nofollow\">\u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438<\/a>, \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d\u043d\u043e\u0439 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435 \u0434\u0438\u0441\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 disko.<\/p>\n<p><em>\u0427\u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0433\u043e\u0434\u043d\u044f?<\/em><\/p>\n<p>\u041c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e-\u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041f\u043e\u0434 &#171;\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e-\u0440\u0430\u0431\u043e\u0447\u0438\u043c&#187; \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443: \u0431\u0435\u0437 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f(XFCE, GNOME \u0438 \u043f\u0440\u043e\u0447\u0435\u0435), \u0443\u0433\u043b\u0443\u0431\u043b\u0451\u043d\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a(\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 zsh, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440). \u0412\u0441\u0451 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043f\u043e\u0441\u0432\u044f\u0449\u0443 \u0440\u0430\u0439\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e NixOs \u0447\u0435\u0440\u0435\u0437 home-manager, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0447\u0438\u043c \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c: \u043f\u043e\u0438\u0441\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0432 nix-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u043c\u0443.<\/p>\n<p><em>\u0427\u0442\u043e \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435?<\/em><\/p>\n<ol>\n<li>\n<p>\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a(systemd-boot \u0438\u043b\u0438 GRUB &#8212; \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043e\u0431\u0430)<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438(\u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430, \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 networkmanager \u0438 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u043b\u0430)<\/p>\n<\/li>\n<li>\n<p>\u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f: \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 \u0438 \u044f\u0437\u044b\u043a<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0432\u0443\u043a\u0430<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0445 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432(vim, git, curl, wget)<\/p>\n<\/li>\n<\/ol>\n<p><em>\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043d\u0430\u0447\u0430\u0442\u044c!<\/em><\/p>\n<p>\u0421\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u041d\u0438\u043a\u0441\u043e\u0439 \u0432\u0436\u0438\u0432\u0443\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c, \u044f \u0431\u044b \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b \u0432\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0442\u0443\u0440 \u043f\u043e \u044f\u0437\u044b\u043a\u0443 Nix: <a href=\"https:\/\/nixcloud.io\/tour\/\" rel=\"noopener noreferrer nofollow\">https:\/\/nixcloud.io\/tour\/<\/a>. <\/p>\n<p>\u0412\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0432\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u044d\u0442\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0437\u043d\u0430\u043d\u0438\u0435(\u0445\u043e\u0442\u044c \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u044b\u043c) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442 \u0432\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0443. \u041d\u0435 \u043f\u043e\u0436\u0430\u043b\u0435\u0439\u0442\u0435 \u0434\u0432\u0443\u0445-\u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0442 \u0432\u0430\u043c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043a\u043e\u0441\u043d\u0451\u043c\u0441\u044f \u0444\u043b\u0435\u0439\u043a\u043e\u0432.<\/p>\n<hr\/>\n<p>\u041a\u0430\u043a\u043e\u0432\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0435\u043b \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442? \u041a\u0430\u043a \u044f \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0438, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430, \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a, \u0430 \u0432 \u043f\u0430\u043f\u043a\u0435 <code>\/tmp<\/code> \u0441\u0435\u0439\u0447\u0430\u0441 \u043b\u0435\u0436\u0438\u0442 <code>disko-config.nix<\/code>(\u043d\u0435 \u0437\u0440\u044f \u043c\u044b \u0435\u0433\u043e \u0442\u0443\u0434\u0430 \u0441\u043f\u0440\u044f\u0442\u0430\u043b\u0438).<\/p>\n<h2>1. \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438<\/h2>\n<p>\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e <code>\/mnt\/etc\/nixos<\/code>, \u0433\u0434\u0435 \u0438 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0412\u0421\u0415 \u043d\u0430\u0448\u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438: <code>configuration.nix<\/code> \u0438 <code>disko-config.nix<\/code>:<\/p>\n<pre><code class=\"bash\">$ sudo mkdir -p \/mnt\/etc\/nixos<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:87px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u0437\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 <code>disko-config.nix<\/code> \u0432 \u044d\u0442\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0438 \u0441\u0430\u043c\u0438\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043d\u0435\u0451:<\/p>\n<pre><code class=\"bash\">$ sudo cp \/tmp\/disko-config.nix \/mnt\/etc\/nixos$ cd \/mnt\/etc\/nixos<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c <code>configuration.nix<\/code>:<\/p>\n<pre><code class=\"bash\">$ sudo nixos-generate-config --no-filesystems --root \/mntwriting \/mnt\/etc\/nixos\/hardware-configuration.nix...writing \/mnt\/etc\/nixos\/configuration.nix...For more hardware-specific settings, see https:\/\/github.com.<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043d\u0430\u0448\u0435\u0439 \u043f\u0430\u043f\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u0430:<\/p>\n<ul>\n<li>\n<p><code>configuraton.nix<\/code> &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u043d\u0451\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u043f\u0430\u043a\u0435\u0442\u044b, \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0441\u043b\u0443\u0436\u0431\u044b \u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.<\/p>\n<\/li>\n<li>\n<p><code>hardware-configuration.nix<\/code> &#8212; \u0444\u0430\u0439\u043b \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0436\u0435\u043b\u0435\u0437\u0430. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443(\u041d\u0415 \u0412 \u041d\u0410\u0428\u0415\u041c \u0421\u041b\u0423\u0427\u0410\u0415!)<\/p>\n<\/li>\n<\/ul>\n<p>\u041d\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043d\u0438\u043c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 <code>nixos-generate-config<\/code> \u0438 \u0447\u0442\u043e \u043e\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0430:<\/p>\n<ul>\n<li>\n<p><code>nixos-generate-config<\/code> &#8212; \u041e\u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0436\u0435\u043b\u0435\u0437\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430(\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0443, \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b) \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0438\u0441\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u041e\u0421.<\/p>\n<\/li>\n<li>\n<p><code>--no-filesystems<\/code> &#8212; \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u043b\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0435 <strong>\u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u0430\u043f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432<\/strong> \u0438 \u0442\u043e\u0447\u0435\u043a \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u043d \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 UUID \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043d\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e <code>disko-config.nix<\/code>. \u0418\u043c\u0435\u043d\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043d\u0435\u0439 <code>hardware-configuration.nix<\/code> \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u0438\u0441\u043a\u0435, \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u0447\u0430\u0441\u0442\u044c\u044e.<\/p>\n<\/li>\n<li>\n<p><code>--root \/mnt<\/code> &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0435, \u043a\u0443\u0434\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b(<code>\/etc\/nixos\/<\/code>), \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0441\u0438\u0434\u0438\u043c \u0432 live-\u043e\u0431\u0440\u0430\u0437\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u043d\u0430 \u043d\u0430\u0448 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043a\u0438 <code>\/mnt<\/code>. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0444\u0430\u0439\u043b\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438 <code>\/mnt\/etc\/nixos\/<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0412\u043e\u0442, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 <code>hardware-configuration.nix<\/code> \u0443 \u043c\u0435\u043d\u044f. \u0443 \u0432\u0430\u0441, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u0436\u0435\u043b\u0435\u0437\u0430, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443. \u0424\u0430\u0439\u043b \u044d\u0442\u043e\u0442 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0435:<\/p>\n<pre><code># Do not modify this file!  It was generated by \u2018nixos-generate-config\u2019# and may be overwritten by future invocations.  Please make changes# to \/etc\/nixos\/configuration.nix instead.{ config, lib, pkgs, modulesPath, ... }:{  imports =    [ (modulesPath + \"\/profiles\/qemu-guest.nix\")    ];  boot.initrd.availableKernelModules = [ \"ahci\" \"xhci_pci\" \"virtio_pci\" \"sr_mod\" \"virtio_blk\" ];  boot.initrd.kernelModules = [ \"dm-snapshot\" ];  boot.kernelModules = [ \"kvm-intel\" ];  boot.extraModulePackages = [ ];  nixpkgs.hostPlatform = lib.mkDefault \"x86_64-linux\";}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<blockquote>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0444\u0444\u0442\u043e\u043f\u0430: \u0412\u043e\u043e\u0431\u0449\u0435, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0436\u0435\u043b\u0435\u0437\u0430 \u0432 NixOs &#8212; \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u0430. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044e\u0437\u0435\u0440\u044b(\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043c\u0435\u043d\u044f) \u0438 \u0432\u043e\u0432\u0441\u0435 \u0443\u0434\u0430\u043b\u044f\u044e\u0442 <code>hardware-configuration.nix<\/code>, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442 \u0432\u0441\u0451 \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443. \u0412 \u044d\u0442\u043e\u043c \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e \u0438 \u0432 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0434 \u0436\u0435\u043b\u0435\u0437\u043e \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.<\/p>\n<\/blockquote>\n<h2>2. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 configuration.nix<\/h2>\n<p>\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0430\u043c &#171;\u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439&#187; <code>configuration.nix<\/code> \u043f\u043e\u0441\u043b\u0435 <code>nixos-generate-config<\/code>:<\/p>\n<pre><code># Edit this configuration file to define what should be installed on# your system. Help is available in the configuration.nix(5) man page, on# https:\/\/search.nixos.org\/options and in the NixOS manual (`nixos-help`).{ config, lib, pkgs, ... }:{  imports =    [ # Include the results of the hardware scan.      .\/hardware-configuration.nix    ];  # Use the systemd-boot EFI boot loader.  boot.loader.systemd-boot.enable = true;  boot.loader.efi.canTouchEfiVariables = true;  # networking.hostName = \"nixos\"; # Define your hostname.  # Configure network connections interactively with nmcli or nmtui.  networking.networkmanager.enable = true;  # Set your time zone.  # time.timeZone = \"Europe\/Amsterdam\";  # Configure network proxy if necessary  # networking.proxy.default = \"http:\/\/user:password@proxy:port\/\";  # networking.proxy.noProxy = \"127.0.0.1,localhost,internal.domain\";  # Select internationalisation properties.  # i18n.defaultLocale = \"en_US.UTF-8\";  # console = {  #   font = \"Lat2-Terminus16\";  #   keyMap = \"us\";  #   useXkbConfig = true; # use xkb.options in tty.  # };  # Enable the X11 windowing system.  # services.xserver.enable = true;    # Configure keymap in X11  # services.xserver.xkb.layout = \"us\";  # services.xserver.xkb.options = \"eurosign:e,caps:escape\";  # Enable CUPS to print documents.  # services.printing.enable = true;  # Enable sound.  # services.pulseaudio.enable = true;  # OR  # services.pipewire = {  #   enable = true;  #   pulse.enable = true;  # };  # Enable touchpad support (enabled default in most desktopManager).  # services.libinput.enable = true;  # Define a user account. Don't forget to set a password with \u2018passwd\u2019.  # users.users.alice = {  #   isNormalUser = true;  #   extraGroups = [ \"wheel\" ]; # Enable \u2018sudo\u2019 for the user.  #   packages = with pkgs; [  #     tree  #   ];  # };  # programs.firefox.enable = true;  # List packages installed in system profile.  # You can use https:\/\/search.nixos.org\/ to find more packages (and options).  # environment.systemPackages = with pkgs; [  #   vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.  #   wget  # ];  # Some programs need SUID wrappers, can be configured further or are  # started in user sessions.  # programs.mtr.enable = true;  # programs.gnupg.agent = {  #   enable = true;  #   enableSSHSupport = true;  # };  # List services that you want to enable:  # Enable the OpenSSH daemon.  # services.openssh.enable = true;  # Open ports in the firewall.  # networking.firewall.allowedTCPPorts = [ ... ];  # networking.firewall.allowedUDPPorts = [ ... ];  # Or disable the firewall altogether.  # networking.firewall.enable = false;  # Copy the NixOS configuration file and link it from the resulting system  # (\/run\/current-system\/configuration.nix). This is useful in case you  # accidentally delete configuration.nix.  # system.copySystemConfiguration = true;  # This option defines the first version of NixOS you have installed on this particular machine,  # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.  #  # Most users should NEVER change this value after the initial install, for any reason,  # even if you've upgraded your system to a new NixOS release.  #  # This value does NOT affect the Nixpkgs version your packages and OS are pulled from,  # so changing it will NOT upgrade your system - see https:\/\/nixos.org\/manual\/nixos\/stable\/#sec-upgrading for how  # to actually do that.  #  # This value being lower than the current NixOS release does NOT mean your system is  # out of date, out of support, or vulnerable.  #  # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,  # and migrated your data accordingly.  #  # For more information, see `man configuration.nix` or https:\/\/nixos.org\/manual\/nixos\/stable\/options#opt-system.stateVersion .  system.stateVersion = \"26.05\"; # Did you read the comment?}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0443\u0436\u0435 \u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u043b\u0438\u0441\u044c \u043e \u043d\u0430\u0441 \u0438 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0441 \u043d\u0443\u0436\u043d\u044b\u0445 \u043d\u0430\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0427\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u044f \u0443\u0434\u0430\u043b\u044e \u043d\u0435\u043d\u0443\u0436\u043d\u0443\u044e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u043f\u043e\u043b\u0443\u0447\u0443 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433(\u0432\u0430\u043c \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u044f \u0434\u0435\u043b\u0430\u044e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430):<\/p>\n<pre><code>{ config, lib, pkgs, ... }:{  imports =    [      .\/hardware-configuration.nix      .\/disko-config.nix # \u041e\u0411\u042f\u0417\u0410\u0422\u0415\u041b\u042c\u041d\u041e \u0423\u041a\u0410\u0416\u0418\u0422\u0415 \u042d\u0422\u041e\u0422 \u0424\u0410\u0419\u041b!    ];          # --- 1. \u0417\u0410\u0413\u0420\u0423\u0417\u0427\u0418\u041a(\u043c\u043d\u0435 \u043f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0434\u0430\u043b\u043e systemd-boot) ---  boot.loader.systemd-boot.enable = true;  boot.loader.efi.canTouchEfiVariables = true;  # --- 2. \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0410 \u0421\u0415\u0422\u0418 ---  # networking.hostName = \"nixos\";  # networking.firewall.enable = false;  networking.networkmanager.enable = true;  # --- 3. \u041b\u041e\u041a\u0410\u041b\u0418\u0417\u0410\u0426\u0418\u042f: \u0412\u0420\u0415\u041c\u042f \u0418 \u042f\u0417\u042b\u041a ---  # time.timeZone = \"Europe\/Amsterdam\";  # i18n.defaultLocale = \"en_US.UTF-8\";  # --- 4. \u0417\u0412\u0423\u041a ---  # services.pulseaudio.enable = true;  #  # services.pipewire = {  #   enable = true;  #   pulse.enable = true;  # };  # --- 5. \u0422\u0410\u0427\u041f\u0410\u0414 ---  # services.libinput.enable = true;  # --- 6. \u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u0415\u041b\u042c ---  # users.users.alice = {  #   isNormalUser = true;  #   extraGroups = [ \"wheel\" ];  #   packages = with pkgs; [  #     tree  #   ];  # };   # --- 7. \u0421\u0418\u0421\u0422\u0415\u041c\u041d\u042b\u0415 \u041f\u0410\u041a\u0415\u0422\u042b ---  # environment.systemPackages = with pkgs; [  #   vim  #   wget  # ];  # --- \u041d\u0415 \u0422\u0420\u041e\u0413\u0410\u0422\u042c \u041d\u0418 \u0412 \u041a\u041e\u0415\u041c \u0421\u041b\u0423\u0427\u0410\u0415(\u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443 \u0432 \u043a\u043e\u043d\u0446\u0435)! ---  system.stateVersion = \"26.05\";}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0423\u0436\u0435 \u043d\u0435 \u0442\u0430\u043a \u0443\u0441\u0442\u0440\u0430\u0448\u0430\u044e\u0449\u0435, \u043f\u0440\u0430\u0432\u0434\u0430? \u041f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0443 \u0432\u0430\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u0435\u0441\u0442\u044c \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u043f\u043e \u0442\u0438\u043f\u0443 &#171;\u0447\u0442\u043e \u0437\u0430 <code>{ config, lib, pkgs, ... }: {}<\/code>?&#187; \u0438\u043b\u0438 &#171;\u0447\u0442\u043e \u0437\u0430 <code>with pkgs<\/code>?&#187;. \u0412\u0441\u0451 \u044d\u0442\u043e \u043c\u044b \u0441\u0435\u0439\u0447\u0430\u0441 \u043e\u0431\u0441\u0443\u0434\u0438\u043c.<\/p>\n<p>\u041d\u043e \u0443\u043f\u043e\u043c\u044f\u043d\u0443, \u0447\u0442\u043e \u0432\u043d\u0443\u0442\u0440\u0438 <code>imports = [ ... ];<\/code> \u043d\u0430\u0445\u043e\u0434\u044f\u0442\u0441\u044f \u0441\u0441\u044b\u043b\u043a\u0438 \u043d\u0430 \u0434\u0440\u0443\u0433\u0438\u0435 \u0444\u0430\u0439\u043b\u044b \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u043c\u044b \u043c\u043e\u0436\u0435\u043c \u0440\u0430\u0437\u0434\u0440\u043e\u0431\u0438\u0442\u044c \u043d\u0430\u0448 <code>configuration.nix<\/code> \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0440\u0430\u0434\u0438 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 <code>boot.nix<\/code>, <code>networking.nix<\/code> \u0438 \u0442\u0434. \u0421\u043a\u0430\u0436\u0443 \u0434\u0430\u0436\u0435 \u0431\u043e\u043b\u044c\u0448\u0435 &#8212; \u0442\u0430\u043a \u041d\u0423\u0416\u041d\u041e \u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n<p>\u0412 NixOs \u043a\u0430\u0436\u0434\u044b\u0439 \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 &#8212; \u044d\u0442\u043e \u043d\u0435 \u0441\u0442\u0430\u0442\u0438\u0447\u043d\u044b\u0439 \u0442\u0435\u043a\u0441\u0442(\u043d\u0430\u043f\u043e\u0434\u043e\u0431\u0438\u0435 <code>.conf<\/code> \u0438\u043b\u0438 <code>.yaml<\/code>), \u0430 <strong>\u0444\u0443\u043d\u043a\u0446\u0438\u044f<\/strong>, \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043d\u0430\u044f \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 Nix. \u0418 \u043a\u0430\u0436\u0434\u0430\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443:<\/p>\n<pre><code>{ \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440_1, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440_2, \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440_3, ... }: {    \/* \u0422\u0435\u043b\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 - \u043d\u0430\u0448\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 *\/}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041d\u0430 \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u043e\u0445\u043e\u0436\u0435? \u041f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u043d\u0430 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0443 \u043d\u0430\u0448\u0435\u0439 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438:<\/p>\n<pre><code>{ config, lib, pkgs, ... }: {    \/* \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430, \u0441\u0435\u0442\u0438, \u044e\u0437\u0435\u0440\u0430 \u0438 \u043f\u0440\u043e\u0447\u0435\u0435 *\/}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u041a\u0430\u043a \u044f \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u043b, \u0432\u0441\u044f \u043d\u0430\u0448\u0430 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u043a\u043e\u0434 \u043d\u0430 \u044f\u0437\u044b\u043a\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f Nix.<\/p>\n<p> \u0422\u043e \u0435\u0441\u0442\u044c:<\/p>\n<p> <code>{ config, lib, pkgs, ...}: {}<\/code> &#8212; \u044d\u0442\u043e \u0424\u0423\u041d\u041a\u0426\u0418\u042f, \u0430 <code>config<\/code>, <code>pkgs<\/code>, <code>lib<\/code> \u0438 <code>...<\/code> &#8212; \u044d\u0442\u043e \u0435\u0451 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b. \u0410 \u0441\u0430\u043c\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 \u0441\u0435\u0442\u0438 \u0438 \u043f\u0440\u043e\u0447\u0435\u0433\u043e, \u0447\u0442\u043e \u043f\u0440\u044f\u0447\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0434\u0443 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0445 \u0444\u0438\u0433\u0443\u0440\u043d\u044b\u0445 \u0441\u043a\u043e\u0431\u043e\u043a &#8212; \u044d\u0442\u043e \u0442\u0435\u043b\u043e \u0444\u0443\u043d\u043a\u0446\u0438\u0438.<\/p>\n<p><strong>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <\/strong><code><strong>config<\/strong><\/code><strong>, <\/strong><code><strong>pkgs<\/strong><\/code><strong>, <\/strong><code><strong>lib<\/strong><\/code><strong> \u0438 <\/strong><code><strong>...<\/strong><\/code><strong>?<\/strong><\/p>\n<ol>\n<li>\n<p><code>pkgs<\/code> (Packages)<\/p>\n<p>\u042d\u0442\u043e \u0432\u0430\u0448 \u0433\u043b\u0430\u0432\u043d\u044b\u0439 \u0441\u043a\u043b\u0430\u0434, \u0433\u0434\u0435 \u043b\u0435\u0436\u0430\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u043e \u0432\u0441\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u044b \u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u0432 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438 <code>nixpkgs<\/code>.<\/p>\n<ul>\n<li>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043a\u043e\u0434\u0435:<\/p>\n<\/li>\n<\/ul>\n<pre><code>environment.systemPackages = [  pkgs.git  pkgs.curl     pkgs.vscode];<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<li>\n<p><code>config<\/code> (Configuration)<\/p>\n<p>\u042d\u0442\u043e \u043e\u0431\u044a\u0435\u043a\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0442\u0435\u043a\u0443\u0449\u0438\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u044b, \u0441\u043b\u0443\u0436\u0431 \u0438 \u043f\u0430\u043a\u0435\u0442\u043e\u0432. NixOS \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0438\u0437 \u0432\u0441\u0435\u0445 \u0432\u0430\u0448\u0438\u0445 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043e\u0434\u0438\u043d \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u043a\u043b\u0443\u0431\u043e\u043a, \u0438 \u0447\u0435\u0440\u0435\u0437 <code>config<\/code> \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c, \u0447\u0442\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043e \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0441\u0442\u0430\u0445.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043a\u043e\u0434\u0435: &#171;\u0435\u0441\u043b\u0438 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d Wi-Fi, \u0442\u043e \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438 \u0443\u0442\u0438\u043b\u0438\u0442\u0443 \u0434\u043b\u044f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0439&#187;:<\/p>\n<pre><code>environment.systemPackages = if config.networking.wireless.enable   then [ pkgs.wirelesstools ]   else [ ];<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<li>\n<p><code>lib<\/code> (Library)<\/p>\n<p>\u042d\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0445 \u0444\u0443\u043d\u043a\u0446\u0438\u0439 Nix. \u0421\u0430\u043c \u043f\u043e \u0441\u0435\u0431\u0435 \u044f\u0437\u044b\u043a Nix \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0430\u043a\u043e\u043d\u0438\u0447\u0435\u043d, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 <code>lib<\/code> \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0432 \u043d\u0435\u0433\u043e \u043b\u043e\u0433\u0438\u043a\u0443: \u0440\u0430\u0431\u043e\u0442\u0443 \u0441\u043e \u0441\u0442\u0440\u043e\u043a\u0430\u043c\u0438, \u0441\u043f\u0438\u0441\u043a\u0430\u043c\u0438 \u0438 \u0443\u0441\u043b\u043e\u0432\u0438\u044f\u043c\u0438.<\/p>\n<p>\u041f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043a\u043e\u0434\u0435: \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>lib.mkIf<\/code> \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u043d\u0438\u0442\u044c \u0442\u0443 \u0438\u043b\u0438 \u0438\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u043c \u0443\u0441\u043b\u043e\u0432\u0438\u0438:<\/p>\n<pre><code>{ config, lib, pkgs, ... }: {  # 1. \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440 Nvidia  hardware.nvidia.modesetting.enable = true;  # 2. \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c Steam, \u0422\u041e\u041b\u042c\u041a\u041e \u0415\u0421\u041b\u0418 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0430 Nvidia  programs.steam.enable = lib.mkIf config.hardware.nvidia.modesetting.enable true;}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<li>\n<p><code>...<\/code> (\u041c\u043d\u043e\u0433\u043e\u0442\u043e\u0447\u0438\u0435)<\/p>\n<p>\u042d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u043d\u0443\u0436\u0435\u043d \u0434\u043b\u044f \u0442\u043e\u0433\u043e, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u043b\u044e\u0431\u044b\u0435 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u0430\u0440\u0433\u0443\u043c\u0435\u043d\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442 \u0444\u0430\u0439\u043b\u0443 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438, \u0434\u0430\u0436\u0435 \u0435\u0441\u043b\u0438 \u043e\u043d\u0438 \u043d\u0435 \u0443\u043a\u0430\u0437\u0430\u043d\u044b \u044f\u0432\u043d\u043e.<\/p>\n<\/li>\n<\/ol>\n<p>\u0412\u0441\u0435 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b NixOs \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043f\u043e \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0435, \u043a\u0440\u043e\u043c\u0435(\u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435) \u0444\u043b\u0435\u0439\u043a\u0430. \u041d\u043e \u043e\u0431 \u044d\u0442\u043e\u043c \u0432 \u0434\u0440\u0443\u0433\u043e\u0439 \u0440\u0430\u0437.<\/p>\n<h2>\u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0438\u0440\u0443\u0435\u043c configuration.nix<\/h2>\n<ol>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u0430 &#8212; \u043a\u0430\u043a \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c systemd-boot \u0438 grub?<\/p>\n<p>\u0420\u0430\u0441\u0441\u0443\u0436\u0434\u0430\u0442\u044c \u0438\u043b\u0438 \u0441\u043f\u043e\u0440\u0438\u0442\u044c \u043e \u0442\u043e\u043c, \u043a\u0430\u043a\u043e\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u043b\u0443\u0447\u0448\u0435, \u044f \u043d\u0435 \u0431\u0443\u0434\u0443, \u043a\u0430\u043a \u0438 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e \u043e\u0431\u044a\u044f\u0441\u043d\u044f\u0442\u044c, \u0437\u0430 \u0447\u0442\u043e \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 \u0442\u0430 \u0438\u043b\u0438 \u0438\u043d\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430 \u0432 systemd-boot \u044f \u043d\u0435 \u0441\u0442\u0430\u043d\u0443, \u043e\u0431\u043e\u0439\u0434\u0443\u0441\u044c \u043e\u0431\u044b\u0447\u043d\u044b\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438, \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u0430\u043c \u0432\u0441\u0451 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e:<\/p>\n<pre><code>\/* --- SYSTEMD-BOOT --- *\/# \u0412\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 systemd-boot boot.loader.systemd-boot.enable = true; # \u0420\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f NixOS \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 EFI boot.loader.efi.canTouchEfiVariables = true;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0418\u043b\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0434\u043b\u044f GRUB. \u0412\u043e\u0442 \u0435\u0433\u043e \u043c\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0447\u043d\u043e \u0438 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c:<\/p>\n<pre><code>\/* --- GRUB --- *\/boot.loader.grub = {enable = true;efiSupport = true;device = \"nodev\";};boot.loader.efi.canTouchEfiVariables = true;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<ul>\n<li>\n<p><code>boot.loader.grub.enable = true;<\/code> &#8212; \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a GRUB. NixOS \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442, \u0447\u0442\u043e \u043f\u0440\u0438 \u0441\u0431\u043e\u0440\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043d\u0443\u0436\u043d\u043e \u0441\u043a\u043e\u043c\u043f\u0438\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c GRUB, \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0435\u0433\u043e \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0435\u0433\u043e \u0433\u043b\u0430\u0432\u043d\u044b\u043c \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a\u043e\u043c \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e.<\/p>\n<\/li>\n<li>\n<p><code>boot.loader.grub.efiSupport = true;<\/code> &#8212; \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u044e GRUB \u0441 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u0430\u0440\u0445\u0438\u0442\u0435\u043a\u0442\u0443\u0440\u044b UEFI. \u0411\u0435\u0437 \u044d\u0442\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438 GRUB \u043f\u043e\u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0434\u043b\u044f \u0441\u0442\u0430\u0440\u043e\u0433\u043e \u0440\u0435\u0436\u0438\u043c\u0430 BIOS(Legacy), \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043e\u0448\u0438\u0431\u043a\u0430\u043c \u043d\u0430 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u043c \u041f\u041a.<\/p>\n<\/li>\n<li>\n<p><code><strong>boot.loader.grub.device = \"nodev\";<\/strong><\/code> &#8212; \u0411\u0443\u043a\u0432\u0430\u043b\u044c\u043d\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u0435\u0442 <em>&#171;\u043d\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430&#187;<\/em>(nodev -&gt; no device). \u0412 \u0441\u0442\u0430\u0440\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 BIOS \u043d\u0443\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0436\u0435\u0441\u0442\u043a\u043e \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0434\u0438\u0441\u043a \u0434\u043b\u044f \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043e\u0447\u043d\u043e\u0433\u043e \u0441\u0435\u043a\u0442\u043e\u0440\u0430(\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, <code>\/dev\/sda<\/code>). \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 UEFI \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043d\u0435 \u0432 \u0441\u0435\u043a\u0442\u043e\u0440 \u0434\u0438\u0441\u043a\u0430, \u0430 \u0432 \u0432\u0438\u0434\u0435 \u043e\u0431\u044b\u0447\u043d\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u043d\u0430 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 EFI-\u0440\u0430\u0437\u0434\u0435\u043b. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>\"nodev\"<\/code> \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 GRUB, \u0447\u0442\u043e <strong>\u043d\u0435 \u043d\u0443\u0436\u043d\u043e \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u044b\u0439 \u0434\u0438\u0441\u043a<\/strong>, \u0430 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0444\u0430\u0439\u043b\u044b \u0432 \u043e\u0431\u0449\u0443\u044e EFI-\u043f\u0430\u043f\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p><code><strong>boot.loader.efi.canTouchEfiVariables = true;<\/strong><\/code> &#8212; \u0440\u0430\u0437\u0440\u0435\u0448\u0430\u0435\u0442 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 NixOS \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0432\u043d\u0443\u0442\u0440\u0438 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 \u043c\u0430\u0442\u0435\u0440\u0438\u043d\u0441\u043a\u043e\u0439 \u043f\u043b\u0430\u0442\u044b(NVRAM). \u0417\u043d\u0430\u044e, \u0447\u0442\u043e \u043d\u0435 \u043e\u0441\u043e\u0431\u043e \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u043d\u043e \u043a\u0440\u0430\u0439\u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u044e \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u044d\u0442\u043e \u043a\u0430\u043a \u0435\u0441\u0442\u044c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u0435\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0441\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0439 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\/\u041f\u041a.<\/p>\n<\/li>\n<\/ul>\n<p>\u041c\u043e\u0439 \u0444\u0430\u0432\u043e\u0440\u0438\u0442 &#8212; GRUB, \u0442\u0430\u043a \u0447\u0442\u043e \u044f \u0431\u0443\u0434\u0443 \u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u0447\u0435\u0440\u0435\u0437 \u043d\u0435\u0433\u043e. \u0412\u044b \u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c systemd-boot, \u0441\u0443\u0442\u0438 \u044d\u0442\u043e \u0432\u043e\u043e\u0431\u0449\u0435 \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0435\u0442.<\/p>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438<\/p>\n<pre><code>networking.hostName = \"nixoshostname\";networking.networkmanager.enable = true;networking.firewall.enable = true;\/* \u041d\u0415\u041e\u0411\u042f\u0417\u0410\u0422\u0415\u041b\u042c\u041d\u041e! \u0412\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 iptables \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u043d\u0430 nftables\u041f\u0440\u043e\u0441\u0442\u043e \u0434\u043e\u0431\u0430\u0432\u044c\u0442\u0435 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044e \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443:*\/# networking.nftables.enable = true;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<ul>\n<li>\n<p><code>networking.hostName = \"nixoshostname\";<\/code> &#8212; \u044d\u0442\u043e \u0438\u043c\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u0445\u043e\u0441\u0442\u0430. \u0422\u0430\u043a \u043a\u0430\u043a \u044d\u0442\u043e \u0433\u0430\u0439\u0434, \u044f \u0432\u044b\u0431\u0440\u0430\u043b <code>nixoshostname<\/code>, \u0432\u044b \u0436\u0435 \u043c\u043e\u0436\u0435\u0442\u0435 \u043f\u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c, \u0447\u0442\u043e \u0434\u0443\u0448\u0435 \u0443\u0433\u043e\u0434\u043d\u043e.<\/p>\n<\/li>\n<li>\n<p><code>networking.networkmanager.enable = true;<\/code> &#8212; \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0432 NixOS \u0441\u043b\u0443\u0436\u0431\u0443 NetworkManager \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438.<\/p>\n<\/li>\n<li>\n<p><code>networking.firewall.enable = true;<\/code> &#8212; \u044d\u0442\u043e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u043e\u0433\u043e \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u043b\u0430. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432 NixOS \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439, \u043e\u0441\u043d\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 <code>iptables<\/code>.<\/p>\n<\/li>\n<li>\n<p><code>networking.nftables.enable = true;<\/code> &#8212; \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u0442 \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0439 \u0432 NixOs \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u043b \u043d\u0430 nftables. \u042f \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u043c \u043d\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b\u0441\u044f, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043d\u0435 \u043c\u043e\u0433\u0443. \u041e\u0441\u0442\u0430\u0432\u043b\u044f\u0439\u0442\u0435 \u043d\u0430 \u0441\u0432\u043e\u0451 \u0443\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435. \u042f \u0435\u0433\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443.<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<\/p>\n<pre><code>time.timeZone = \"Europe\/Moscow\";    # \u0427\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441i18n.defaultLocale = \"ru_RU.UTF-8\"; # \u0421\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u044f\u0437\u044b\u043a(\u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0435 \u0443\u0442\u0438\u043b\u0438\u0442\u044b \u0438 \u043f\u0440\u043e\u0447\u0435\u0435)<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<\/li>\n<li>\n<p>\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0432\u0443\u043a\u0430<\/p>\n<p>\u041d\u0438 \u0434\u043b\u044f \u043a\u043e\u0433\u043e \u043d\u0438 \u0441\u0435\u043a\u0440\u0435\u0442, \u0447\u0442\u043e \u0432 \u043c\u0438\u0440\u0435 Linux \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u0434\u0432\u0430 \u0437\u0432\u0443\u043a\u043e\u0432\u044b\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u0430: pulseaudio \u0438 pipewire. \u0412 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u043d\u0443\u0436\u043d\u043e \u0441\u0442\u0430\u0432\u0438\u0442\u044c PipeWire \u0438 \u0432\u0430\u043c, \u044f \u0443\u0432\u0435\u0440\u0435\u043d, \u0442\u043e\u0436\u0435. <strong>PulseAudio<\/strong> \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 \u043e\u0447\u0435\u043d\u044c \u0441\u0442\u0430\u0440\u044b\u0445 \u0438\u043b\u0438 \u0441\u043b\u0430\u0431\u044b\u0445 \u041f\u041a, \u043b\u0438\u0431\u043e \u043f\u0440\u0438 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438.<\/p>\n<blockquote>\n<p>\u0421\u0430\u043c \u044f \u0441 pulseaudio \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u043b \u0438 \u0432\u0441\u044e \u0441\u0432\u043e\u044e \u0436\u0438\u0437\u043d\u044c \u0434\u0430\u0436\u0435 \u043d\u0430 \u0441\u0432\u043e\u0451\u043c \u0434\u0432\u0435\u043d\u0430\u0434\u0446\u0430\u0442\u0438\u043b\u0435\u0442\u043d\u0435\u043c \u0441\u0442\u0430\u0440\u0435\u043d\u044c\u043a\u043e\u043c Lenovo \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043b pipewire.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>\u0422\u0430\u0447\u043f\u0430\u0434<\/p>\n<pre><code>services.libinput.enable = true;<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>Libinput &#8212; \u044d\u0442\u043e \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u0430\u044f \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0432\u0432\u043e\u0434\u0430 \u0441 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043f\u0435\u0440\u0438\u0444\u0435\u0440\u0438\u0438 \u0432 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 \u043d\u0430 \u0431\u0430\u0437\u0435 Linux: \u043c\u044b\u0448\u043a\u0438, \u0442\u0430\u0447\u043f\u0430\u0434\u0430 \u0438 \u0442\u0434. \u0415\u0441\u043b\u0438 \u0432\u044b \u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0435\u0441\u044c \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u043e\u043c, \u0442\u043e \u0430\u043a\u0442\u0438\u0432\u0430\u0446\u0438\u044f \u044d\u0442\u043e\u0439 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u041e\u0411\u042f\u0417\u0410\u0422\u0415\u041b\u042c\u041d\u0410!<\/p>\n<blockquote>\n<p>\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0444\u0444\u0442\u043e\u043f\u0430: \u0443 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0445 \u0432\u0435\u043d\u0434\u043e\u0440\u043e\u0432(\u043f\u0440\u0438\u0432\u0435\u0442, Honor), \u0447\u044c\u0438 \u043d\u043e\u0443\u0442\u0431\u0443\u043a\u0438 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u043d\u0435 \u0440\u0430\u0441\u0447\u0438\u0442\u0430\u043d\u044b \u043d\u0430 \u043b\u0438\u043d\u0443\u043a\u0441, \u043c\u043e\u0433\u0443\u0442 \u0431\u044b\u0442\u044c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b \u0441 \u0442\u0430\u0447\u043f\u0430\u0434\u0430\u043c\u0438. \u0423 \u043c\u0435\u043d\u044f \u043e\u043d \u043f\u0440\u043e\u0441\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u043a\u043b\u044e\u0447\u0438\u0442\u044c\u0441\u044f \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0451\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442(\u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442 \u043d\u0435 \u0447\u0430\u0441\u0442\u043e, \u0440\u0430\u0437 \u0432 \u043d\u0435\u0434\u0435\u043b\u044e-\u0434\u0432\u0435, \u0438\u043d\u043e\u0433\u0434\u0430 \u0434\u0430\u0436\u0435 \u0432 \u043c\u0435\u0441\u044f\u0446, \u043d\u043e \u0432\u0441\u0451 \u0440\u0430\u0432\u043d\u043e \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u043e). \u041f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u0434\u0435\u043b\u0438\u043b\u0441\u044f \u043e\u043f\u044b\u0442\u043e\u043c, \u043d\u0435 \u0431\u043e\u043b\u0435\u0435. \u0415\u0441\u043b\u0438 \u0441\u043c\u043e\u0433\u0443 \u0440\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u044e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0441\u0442 \u043d\u0430 \u044d\u0442\u0443 \u0442\u0435\u043c\u0443. \u0422\u0430\u043a\u0436\u0435 \u0431\u0443\u0434\u0443 \u0440\u0430\u0434 \u043f\u043e\u0447\u0438\u0442\u0430\u0442\u044c \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043d\u0430 \u044d\u0442\u043e\u0442 \u0441\u0447\u0451\u0442.<\/p>\n<\/blockquote>\n<\/li>\n<li>\n<p>\u041f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c<\/p>\n<p>\u0417\u0434\u0435\u0441\u044c \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0438\u043c\u044f \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0433\u043e \u044e\u0437\u0435\u0440\u0430, \u0430 \u0437\u0430\u0442\u0435\u043c \u0435\u0433\u043e \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 &#171;wheel&#187;, \u0447\u0442\u043e\u0431\u044b \u0443 \u043d\u0435\u0433\u043e \u0431\u044b\u043b \u0434\u043e\u0441\u0442\u0443\u043f \u043a sudo, \u0438 \u0432 \u0433\u0440\u0443\u043f\u043f\u0443 &#171;networkmanager&#187;, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0441\u0435\u0442\u0435\u0432\u044b\u043c\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u0431\u0435\u0437 sudo.<\/p>\n<pre><code>users.users.alice = {  # \u041f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 alice \u043d\u0430 \u0441\u0432\u043e\u0451 \u0438\u043c\u044f, \u0430 \u044f \u043e\u0441\u0442\u0430\u0432\u043b\u044e \u043a\u0430\u043a \u0435\u0441\u0442\u044c  isNormalUser = true; # \u0423\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0447\u0442\u043e \u044d\u0442\u043e \u043f\u0440\u043e\u0444\u0438\u043b\u044c \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u0430, \u0430 \u043d\u0435 \u0441\u043b\u0443\u0436\u0431\u044b  extraGroups = [ \"wheel\" \"networkmanager\"]; # \u0413\u0440\u0443\u043f\u043f\u044b \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f  packages = with pkgs; [cowsay  ];};<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><code>users.users.alice.packages<\/code> \u043d\u0443\u0436\u0435\u043d, \u0447\u0442\u043e\u0431\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0430\u043a\u0435\u0442\u044b, \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0435 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044e. \u0418\u043d\u044b\u043c\u0438 \u0441\u043b\u043e\u0432\u0430\u043c\u0438, \u0435\u0441\u043b\u0438 \u0432 \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c(\u0443\u0441\u043b\u043e\u0432\u043d\u043e &#171;ivan&#187;), \u0442\u043e \u0432\u043e\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u0443\u0442\u0438\u043b\u0438\u0442\u043e\u0439 <code>cowsay<\/code>, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u043c\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u0434\u043b\u044f &#171;alice&#187;, \u043e\u043d \u043d\u0435 \u0441\u043c\u043e\u0436\u0435\u0442(\u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b \u043f\u0440\u043e\u0441\u0442\u043e \u0432\u044b\u0432\u0435\u0434\u0435\u0442 command not found).<\/p>\n<\/li>\n<li>\n<p>\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432<\/p>\n<p>\u0412\u043e\u0442 \u0441\u043f\u0438\u0441\u043e\u043a \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043f\u043e\u043d\u0430\u0434\u043e\u0431\u0438\u0442\u0441\u044f \u043f\u043e\u0441\u043b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438. \u041d\u0435 \u0432\u043e\u043b\u043d\u0443\u0439\u0442\u0435\u0441\u044c, \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u0432\u044b \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043c\u043e\u0436\u0435\u0442\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043d\u0443\u0436\u043d\u044b\u0435 \u043f\u0430\u043a\u0435\u0442\u044b \u0438\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c \u0438\u0445:<\/p>\n<pre><code>environment.systemPackages = with pkgs; [  vim  git  curl  wget];<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0442\u043e \u0437\u0434\u0435\u0441\u044c \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442?<\/p>\n<ul>\n<li>\n<p><code>environment.systemPackages<\/code> &#8212; \u044d\u0442\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0439 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 NixOS(\u0441\u043f\u0438\u0441\u043e\u043a). \u0412\u0441\u0435 \u043f\u0430\u043a\u0435\u0442\u044b, \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u044b\u0435 \u0432 \u043d\u0435\u043c, \u0431\u0443\u0434\u0443\u0442 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u044b \u0433\u043b\u043e\u0431\u0430\u043b\u044c\u043d\u043e \u0438 \u0441\u0442\u0430\u043d\u0443\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0432\u0441\u0435\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u043c \u0432 \u0442\u0435\u0440\u043c\u0438\u043d\u0430\u043b\u0435.<\/p>\n<\/li>\n<li>\n<p><code>= [ ... ];<\/code> &#8212; \u0437\u043d\u0430\u043a \u0440\u0430\u0432\u0435\u043d\u0441\u0442\u0432\u0430 \u043f\u0440\u0438\u0441\u0432\u0430\u0438\u0432\u0430\u0435\u0442 \u0441\u043f\u0438\u0441\u043e\u043a(\u0432 Nix \u0441\u043f\u0438\u0441\u043a\u0438 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0432 \u043a\u0432\u0430\u0434\u0440\u0430\u0442\u043d\u044b\u0435 \u0441\u043a\u043e\u0431\u043a\u0438 <code>[]<\/code>) \u044d\u0442\u043e\u043c\u0443 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0443. \u0421\u0442\u0440\u043e\u043a\u0430 \u041e\u0411\u042f\u0417\u0410\u0422\u0415\u041b\u042c\u041d\u041e \u0437\u0430\u0432\u0435\u0440\u0448\u0430\u0435\u0442\u0441\u044f \u0442\u043e\u0447\u043a\u043e\u0439 \u0441 \u0437\u0430\u043f\u044f\u0442\u043e\u0439.<\/p>\n<\/li>\n<li>\n<p><code>with pkgs;<\/code> &#8212; \u044d\u0442\u043e \u044f\u0437\u044b\u043a\u043e\u0432\u0430\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u043e \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0434\u043e\u0441\u0442\u0443\u043f \u043a \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u043c\u0443 \u043d\u0430\u0431\u043e\u0440\u0430 <code>pkgs<\/code>. \u0415\u0441\u043b\u0438 \u0432\u044b \u0443\u0436\u0435 \u0438\u043c\u0435\u043b\u0438 \u0434\u0435\u043b\u043e \u0441 \u044f\u0437\u044b\u043a\u043e\u043c Nix, \u0442\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442.<\/p>\n<\/li>\n<\/ul>\n<p>\u0417\u0430\u0447\u0435\u043c \u0437\u0434\u0435\u0441\u044c \u043d\u0443\u0436\u0435\u043d <code>with pkgs<\/code>? \u0423\u0434\u043e\u0431\u0441\u0442\u0432\u043e, \u043d\u0435 \u0431\u043e\u043b\u0435\u0435, \u0447\u0442\u043e\u0431\u044b \u043f\u0435\u0440\u0435\u0434 \u043a\u0430\u0436\u0434\u044b\u043c \u043f\u0430\u043a\u0435\u0442\u043e\u043c \u043d\u0430\u043c \u043d\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u043f\u0438\u0441\u0430\u0442\u044c \u043f\u0440\u0438\u0441\u0442\u0430\u0432\u043a\u0443 <code>pkgs.&lt;\u043d\u0430\u0437\u0432\u0430\u043d\u0438\u0435_\u043f\u0430\u043a\u0435\u0442\u0430&gt;<\/code>:<\/p>\n<pre><code># \u0415\u0441\u043b\u0438 \u0443\u0431\u0440\u0430\u0442\u044c with pkgs:environment.systemPackages = [  pkgs.vim  pkgs.git  pkgs.curl  pkgs.wget];<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <code>pkgs<\/code>? <code><strong>pkgs<\/strong><\/code> &#8212; \u044d\u0442\u043e \u043e\u0433\u0440\u043e\u043c\u043d\u044b\u0439 \u0441\u043a\u043b\u0430\u0434 \u0432\u0441\u0435\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c, \u0443\u0442\u0438\u043b\u0438\u0442 \u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0443\u043c\u0435\u0435\u0442 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c NixOs. \u0422\u043e\u043b\u044c\u043a\u043e \u0445\u0440\u0430\u043d\u0438\u0442 \u043e\u043d \u043d\u0435 \u0441\u0430\u043c\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u0430 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u0438 \u043f\u043e \u0441\u0431\u043e\u0440\u043a\u0435 \u0441\u043e\u0444\u0442\u0430(\u0434\u0435\u0440\u0438\u0432\u0430\u0446\u0438\u0438) \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0441 \u0432\u0430\u043c\u0438 NixOs. \u0412 \u044d\u0442\u0438\u0445 \u0438\u043d\u0441\u0442\u0440\u0443\u043a\u0446\u0438\u044f\u0445 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e: \u043e\u0442\u043a\u0443\u0434\u0430 \u0441\u043a\u0430\u0447\u0430\u0442\u044c \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b, \u043a\u0430\u043a\u0438\u043c\u0438 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440\u0430\u043c\u0438 \u0435\u0433\u043e \u0441\u043e\u0431\u0440\u0430\u0442\u044c \u0438 \u043a\u0430\u043a\u0438\u0435 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u0435\u043c\u0443 \u043d\u0443\u0436\u043d\u044b. \u0411\u0435\u0440\u0451\u0442 \u0436\u0435 \u043e\u043d \u0432\u0441\u0451 \u044d\u0442\u043e \u0434\u043e\u0431\u0440\u043e \u0438\u0437 \u0438\u0437 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f <a href=\"https:\/\/github.com\/NixOS\/nixpkgs\" rel=\"noopener noreferrer nofollow\">Nixpkgs<\/a>, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0442 \u0442\u044b\u0441\u044f\u0447\u0438 \u043b\u044e\u0434\u0435\u0439.<\/p>\n<p>\u0422\u0443\u0442 \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0443\u043f\u043e\u043c\u044f\u043d\u0443\u0442\u044c \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c \u043a\u0430\u043d\u0430\u043b\u043e\u0432, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u0430\u0442\u044c \u043f\u0440\u043e \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u0438 \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b, \u043d\u043e \u044f \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0443, \u0442\u0430\u043a \u043a\u0430\u043a \u043a\u0430\u043d\u0430\u043b\u044b &#8212; \u044d\u0442\u043e \u0443\u0436\u0435 \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0430\u044f \u0438 \u0432\u044b\u0442\u0435\u0441\u043d\u044f\u0435\u043c\u0430\u044f \u0444\u043b\u0435\u0439\u043a\u0430\u043c\u0438 \u0432\u0435\u0449\u044c, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0434\u0430\u0436\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442\u0435. \u041f\u043e\u0432\u0435\u0440\u044c\u0442\u0435, \u044d\u0442\u043e \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e, \u0438 \u044f \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 \u043f\u0440\u043e \u0444\u043b\u0435\u0439\u043a\u0438 \u0440\u0430\u0441\u0441\u043a\u0430\u0436\u0443, \u043f\u043e\u0447\u0435\u043c\u0443.<\/p>\n<\/li>\n<\/ol>\n<h2>3. \u0424\u0438\u043d\u0430\u043b\u044c\u043d\u0430\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f<\/h2>\n<p>\u0418\u0442\u043e\u0433\u043e \u043f\u043e\u0441\u043b\u0435 \u0432\u0441\u0435\u0433\u043e, \u0447\u0442\u043e \u044f \u043f\u043e\u043d\u0430\u0432\u044b\u0442\u0432\u043e\u0440\u044f\u043b, \u0443 \u043c\u0435\u043d\u044f \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u0441\u044f \u0442\u0430\u043a\u043e\u0439 <code>configuration.nix<\/code>:<\/p>\n<pre><code>{ config, lib, pkgs, ... }:{  imports =    [      .\/hardware-configuration.nix    ];          # --- 1. \u0417\u0410\u0413\u0420\u0423\u0417\u0427\u0418\u041a(GRUB) ---  boot.loader.grub = {enable = true;efiSupport = true;device = \"nodev\";  };  boot.loader.efi.canTouchEfiVariables = true;  # --- 2. \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0410 \u0421\u0415\u0422\u0418 ---  # networking.hostName = \"nixos\";  networking.networkmanager.enable = true;  # --- 3. \u041b\u041e\u041a\u0410\u041b\u0418\u0417\u0410\u0426\u0418\u042f: \u0412\u0420\u0415\u041c\u042f \u0418 \u042f\u0417\u042b\u041a ---  time.timeZone = \"Europe\/Moscow\";  i18n.defaultLocale = \"ru_RU.UTF-8\";  i18n.supportedLocales = [ \"ru_RU.UTF-8\/UTF-8\" \"en_US.UTF-8\/UTF-8\" ];  console = {   font = \"cyr-sun16\";   keyMap = \"ru\";};  # --- 4. \u0417\u0412\u0423\u041a ---  security.rtkit.enable = true;   services.pipewire = {    enable = true;    alsa.enable = true;    alsa.support32Bit = true;    pulse.enable = true;  };  # --- 5. \u0422\u0410\u0427\u041f\u0410\u0414 ---  services.libinput.enable = true;  # --- 6. \u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u0415\u041b\u042c ---  users.users.alice = {    isNormalUser = true;    extraGroups = [ \"wheel\" \"networkmanager\"];    packages = with pkgs; [  cowsay    ];  };   # --- 7. \u0421\u0418\u0421\u0422\u0415\u041c\u041d\u042b\u0415 \u041f\u0410\u041a\u0415\u0422\u042b ---  environment.systemPackages = [    pkgs.vim    pkgs.git    pkgs.curl    pkgs.wget  ];  # --- \u041d\u0415 \u0422\u0420\u041e\u0413\u0410\u0422\u042c \u041d\u0418 \u0412 \u041a\u041e\u0415\u041c \u0421\u041b\u0423\u0427\u0410\u0415! ---  system.stateVersion = \"26.05\";}<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p><strong>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 <\/strong><code><strong>system.stateVersion = \"26.05\";<\/strong><\/code><strong> \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0435\u0433\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0443\u0431\u0438\u0440\u0430\u0442\u044c \u0438\u043b\u0438 \u043c\u0435\u043d\u044f\u0442\u044c? (\u0432\u044b\u0434\u0435\u0440\u0436\u043a\u0430 \u0438\u0437 MyNixos)<\/strong><\/p>\n<blockquote>\n<p>\u042d\u0442\u0430 \u043e\u043f\u0446\u0438\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043f\u0435\u0440\u0432\u0443\u044e \u0432\u0435\u0440\u0441\u0438\u044e NixOS, \u043a\u043e\u0442\u043e\u0440\u0443\u044e \u0432\u044b \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 \u043d\u0430 \u044d\u0442\u043e\u0439 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u0435, \u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u044f \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c\u043e\u0441\u0442\u0438 \u0441 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0431\u0430\u0437\u0430\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u0445), \u0441\u043e\u0437\u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0441\u0442\u0430\u0440\u044b\u0445 \u0432\u0435\u0440\u0441\u0438\u044f\u0445 NixOS.<br \/> \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a: <a href=\"https:\/\/mynixos.com\/nixpkgs\/option\/system.stateVersion\" rel=\"noopener noreferrer nofollow\">https:\/\/mynixos.com\/nixpkgs\/option\/system.stateVersion<\/a><\/p>\n<\/blockquote>\n<p>\u041f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u044c\u0442\u0435, \u0447\u0442\u043e \u0432\u044b \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u043b\u0438 \u0434\u043e\u043c \u0432 2024 \u0433\u043e\u0434\u0443. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0432 NixOS \u0441\u043c\u043e\u0442\u0440\u044f\u0442 \u043d\u0430 \u044d\u0442\u043e\u0442 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 \u0438 \u0434\u0443\u043c\u0430\u044e\u0442: <em>&#171;\u0410\u0433\u0430, \u044d\u0442\u043e\u0442 \u0434\u043e\u043c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u0432 24-\u043c \u0433\u043e\u0434\u0443, \u0437\u043d\u0430\u0447\u0438\u0442, \u043a\u043b\u044e\u0447\u0438 \u043e\u0442 \u043f\u043e\u0434\u0432\u0430\u043b\u0430 \u043b\u0435\u0436\u0430\u0442 \u043d\u0430 \u0441\u0442\u0430\u0440\u043e\u043c \u043c\u0435\u0441\u0442\u0435, \u0430 \u0442\u0440\u0443\u0431\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u044b \u043f\u043e \u0441\u0442\u0430\u0440\u044b\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u0430\u043c&#187;<\/em>.<\/p>\n<p>\u0415\u0441\u043b\u0438 \u0432\u044b \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0435 \u0441\u0430\u043c\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443(\u0441\u043a\u0430\u0447\u0430\u0435\u0442\u0435 \u043d\u043e\u0432\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b), \u0432\u0430\u0448 \u0434\u043e\u043c \u043e\u0431\u043d\u043e\u0432\u0438\u0442\u0441\u044f. \u041d\u043e \u0435\u0441\u043b\u0438 \u0432\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0435 <code>stateVersion<\/code> \u043d\u0430 <code>\"26.05\"<\/code>, \u0432\u044b \u043e\u0431\u043c\u0430\u043d\u0435\u0442\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u0443. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u043e\u0434\u0443\u043c\u0430\u0435\u0442: <em>&#171;\u041e, \u044d\u0442\u043e\u0442 \u0434\u043e\u043c \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u0432 2026 \u0433\u043e\u0434\u0443 \u043f\u043e \u043d\u043e\u0432\u044b\u043c \u0447\u0435\u0440\u0442\u0435\u0436\u0430\u043c!&#187;<\/em> \u2014 \u0438 \u043f\u043e\u0439\u0434\u0435\u0442 \u0438\u0441\u043a\u0430\u0442\u044c \u043a\u043b\u044e\u0447\u0438 \u0438 \u0442\u0440\u0443\u0431\u044b \u0442\u0430\u043c, \u0433\u0434\u0435 \u0443 \u0432\u0430\u0441 \u0438\u0445 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u044b\u043b\u043e. \u0412 \u0438\u0442\u043e\u0433\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043f\u0440\u043e\u0441\u0442\u043e \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f.<\/p>\n<p>\u0427\u0442\u043e \u043d\u0443\u0436\u043d\u043e \u0437\u0430\u043f\u043e\u043c\u043d\u0438\u0442\u044c:<\/p>\n<ol>\n<li>\n<p><strong>\u042d\u0422\u041e \u041d\u0415 \u0412\u0415\u0420\u0421\u0418\u042f \u0412\u0410\u0428\u0418\u0425 \u041f\u0420\u041e\u0413\u0420\u0410\u041c\u041c:<\/strong> \u0412\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c NixOS \u0434\u043e \u0441\u0430\u043c\u044b\u0445 \u0441\u0432\u0435\u0436\u0438\u0445 \u0432\u0435\u0440\u0441\u0438\u0439, \u0438\u043c\u0435\u0442\u044c \u0441\u0430\u043c\u044b\u0439 \u043d\u043e\u0432\u044b\u0439 \u0441\u043e\u0444\u0442 \u0438 \u044f\u0434\u0440\u043e. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 <code>stateVersion<\/code> \u043f\u0440\u0438 \u044d\u0442\u043e\u043c \u0442\u0440\u043e\u0433\u0430\u0442\u044c <strong>\u041d\u0415 \u041d\u0423\u0416\u041d\u041e<\/strong>. \u041e\u043d \u043e\u0441\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u0442\u0430\u0440\u044b\u043c.<\/p>\n<\/li>\n<li>\n<p><strong>\u0427\u0442\u043e \u0431\u0443\u0434\u0435\u0442, \u0435\u0441\u043b\u0438 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c:<\/strong> \u0421\u043b\u043e\u043c\u0430\u044e\u0442\u0441\u044f \u0431\u0430\u0437\u044b \u0434\u0430\u043d\u043d\u044b\u0445, \u0438\u0437\u043c\u0435\u043d\u044f\u0442\u0441\u044f \u043f\u0440\u0430\u0432\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u0430 \u043a \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c \u043f\u0430\u043f\u043a\u0430\u043c, \u0438 \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0434\u0430\u0442\u044c \u043e\u0448\u0438\u0431\u043a\u0443.<\/p>\n<\/li>\n<li>\n<p>\u041b\u0443\u0447\u0448\u0435\u0435, \u0447\u0442\u043e \u0432\u044b \u043c\u043e\u0436\u0435\u0442\u0435 \u0441\u0434\u0435\u043b\u0430\u0442\u044c: \u043f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u0440\u043e \u044d\u0442\u0443 \u0441\u0442\u0440\u043e\u0447\u043a\u0443 \u0432 \u0444\u0430\u0439\u043b\u0435 <code>configuration.nix<\/code>. \u041e\u043d\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0436\u0435, \u043a\u0430\u043a\u043e\u0439 \u0431\u044b\u043b\u0430 \u0432 \u0434\u0435\u043d\u044c, \u043a\u043e\u0433\u0434\u0430 \u0432\u044b \u0432\u043f\u0435\u0440\u0432\u044b\u0435 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0438 NixOS \u043d\u0430 \u0441\u0432\u043e\u0439 \u041f\u041a.<\/p>\n<\/li>\n<\/ol>\n<h2>\u0424\u0438\u043d\u0430\u043b &#8212; \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0441\u0438\u0441\u0442\u0435\u043c\u0443<\/h2>\n<p>\u041e\u0441\u0442\u0430\u043b\u0438\u0441\u044c \u0441\u0443\u0449\u0438\u0435 \u043c\u0435\u043b\u043e\u0447\u0438. \u041f\u0440\u043e\u0441\u0442\u043e \u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u044d\u0442\u0443 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0447\u0435\u0440\u0435\u0437 <code>sudo<\/code>:<\/p>\n<pre><code class=\"bash\">sudo nixos-install<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0412 \u043a\u043e\u043d\u0446\u0435 \u043d\u0435 \u0437\u0430\u0431\u0443\u0434\u044c\u0442\u0435 \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u0430\u0440\u043e\u043b\u044c \u0434\u043b\u044f \u0440\u0443\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 <code>passwd<\/code>. \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0441\u0434\u0435\u043b\u0430\u0439\u0442\u0435 \u0440\u0435\u0431\u0443\u0442:<\/p>\n<pre><code class=\"bash\">reboot<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><img style=\"width:14px;height:14px;object-fit:cover;object-position:left;\"\/><\/a><\/div><\/pre>\n<p>\u0414\u0430\u043b\u044c\u0448\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0444\u043b\u0435\u0448\u043a\u0443, \u0430 \u043f\u043e\u0441\u043b\u0435 \u0437\u0430\u0445\u043e\u0434\u0430 \u043f\u043e\u043c\u0435\u043d\u044f\u0439\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f <code>passwd &lt;\u0438\u043c\u044f_\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f&gt;<\/code>, \u0434\u043b\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f, \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u043c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u0432 \u043f\u0443\u043d\u043a\u0442\u0435 6(\u0432 \u043c\u043e\u0451\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; <code>alice<\/code>)<\/p>\n<h2>\u041f\u043e\u0441\u043b\u0435\u0441\u043b\u043e\u0432\u0438\u0435<\/h2>\n<p>\u041d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0435\u043b \u0442\u0430\u043a\u043e\u0432\u043e, \u0443 \u043d\u0430\u0441 \u0435\u0441\u0442\u044c:<\/p>\n<ol>\n<li>\n<p>\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a.<\/p>\n<\/li>\n<li>\n<p>\u0414\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0430\u044f \u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u0430\u044f \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430.<\/p>\n<\/li>\n<\/ol>\n<p>\u0420\u0430\u0437\u0443\u043c\u0435\u0435\u0442\u0441\u044f, \u043d\u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u043d\u0438 \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u0445 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c \u043f\u043e \u0442\u0438\u043f\u0443 \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430 \u0443 \u043d\u0430\u0441 \u0441\u0435\u0439\u0447\u0430\u0441 \u043d\u0435\u0442. \u0414\u0430 \u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u043c\u044b \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u043d\u0435 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438. \u0412 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435 \u043c\u044b \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c\u0441\u044f \u0441 \u0444\u043b\u0435\u0439\u043a\u0430\u043c\u0438, \u043f\u0435\u0440\u0435\u0432\u0435\u0434\u0451\u043c \u043d\u0430\u0448\u0443 \u0441\u0438\u0441\u0442\u0435\u043c\u0443 \u043d\u0430 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u044b\u0439 \u0438 \u0432\u043e\u0441\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 \u0438 \u0438\u0437\u0431\u0430\u0432\u0438\u043c \u0441\u0435\u0431\u044f \u043e\u0442 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0441\u0442\u0438 \u043a\u0430\u0436\u0434\u044b\u0439 \u0440\u0430\u0437 \u043f\u0438\u0441\u0430\u0442\u044c sudo, \u0447\u0442\u043e\u0431\u044b \u0447\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0432 <code>configuration.nix<\/code><\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1074468\/\">https:\/\/habr.com\/ru\/articles\/1074468\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u042d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u044b\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438, \u043f\u043e\u0441\u0432\u044f\u0449\u0451\u043d\u043d\u043e\u0439 \u0434\u0435\u043a\u043b\u0430\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0435 \u0434\u0438\u0441\u043a\u0430 \u0447\u0435\u0440\u0435\u0437 disko.\u0427\u0442\u043e \u043c\u044b \u0431\u0443\u0434\u0435\u043c \u0434\u0435\u043b\u0430\u0442\u044c \u0441\u0435\u0433\u043e\u0434\u043d\u044f?\u041c\u044b \u0441 \u0432\u0430\u043c\u0438 \u0441\u043e\u0441\u0442\u0430\u0432\u0438\u043c \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e-\u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u043e\u043d\u0444\u0438\u0433 \u0434\u043b\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u041f\u043e\u0434 &#171;\u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u043e-\u0440\u0430\u0431\u043e\u0447\u0438\u043c&#187; \u044f \u0438\u043c\u0435\u044e \u0432 \u0432\u0438\u0434\u0443: \u0431\u0435\u0437 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f(XFCE, GNOME \u0438 \u043f\u0440\u043e\u0447\u0435\u0435), \u0443\u0433\u043b\u0443\u0431\u043b\u0451\u043d\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a(\u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 zsh, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440). \u0412\u0441\u0451 \u044d\u0442\u043e \u0431\u0443\u0434\u0435\u0442 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043c\u0430\u0442\u0435\u0440\u0438\u0430\u043b\u0435, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u043f\u043e\u0441\u0432\u044f\u0449\u0443 \u0440\u0430\u0439\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e NixOs \u0447\u0435\u0440\u0435\u0437 home-manager, \u0430 \u0442\u0430\u043a\u0436\u0435 \u043f\u0440\u043e\u0447\u0438\u043c \u043f\u0440\u0438\u043a\u043b\u0430\u0434\u043d\u044b\u043c \u043c\u043e\u043c\u0435\u043d\u0442\u0430\u043c: \u043f\u043e\u0438\u0441\u043a\u0443 \u043f\u0430\u043a\u0435\u0442\u043e\u0432, \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0432 nix-\u0444\u043e\u0440\u043c\u0430\u0442\u0435 \u0438 \u043f\u0440\u043e\u0447\u0435\u043c\u0443.\u0427\u0442\u043e \u0443 \u043d\u0430\u0441 \u0431\u0443\u0434\u0435\u0442 \u0432 \u043a\u043e\u043d\u0444\u0438\u0433\u0435?\u0420\u0430\u0431\u043e\u0447\u0438\u0439 \u0437\u0430\u0433\u0440\u0443\u0437\u0447\u0438\u043a(systemd-boot \u0438\u043b\u0438 GRUB &#8212; \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043e\u0431\u0430)\u041d\u0430\u0441\u0442\u043e\u0439\u043a\u0430 \u0441\u0435\u0442\u0438(\u0438\u043c\u044f \u0445\u043e\u0441\u0442\u0430, \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 networkmanager \u0438 \u0444\u0430\u0435\u0440\u0432\u043e\u043b\u043b\u0430)\u041b\u043e\u043a\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f: \u0447\u0430\u0441\u043e\u0432\u043e\u0439 \u043f\u043e\u044f\u0441 \u0438 \u044f\u0437\u044b\u043a\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0437\u0432\u0443\u043a\u0430\u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f\u0423\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0430 \u043d\u0430\u0438\u0431\u043e\u043b\u0435\u0435 \u0432\u0430\u0436\u043d\u044b\u0445 \u043d\u0430 \u043f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u044b\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432(vim, git, curl, wget)\u041f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043d\u0430\u0447\u0430\u0442\u044c!\u0421\u0435\u0439\u0447\u0430\u0441 \u043d\u0430\u0441\u0442\u0443\u043f\u0430\u0435\u0442 \u0442\u043e\u0442 \u0441\u0430\u043c\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442, \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0441\u0442\u0430\u043b\u043a\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0441 \u041d\u0438\u043a\u0441\u043e\u0439 \u0432\u0436\u0438\u0432\u0443\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443, \u043f\u0440\u0435\u0436\u0434\u0435 \u0447\u0435\u043c \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u0442\u044c, \u044f \u0431\u044b \u043f\u043e\u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b \u0432\u0430\u043c \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u0439\u0442\u0438 \u044d\u0442\u043e\u0442 \u0442\u0443\u0440 \u043f\u043e \u044f\u0437\u044b\u043a\u0443 Nix: https:\/\/nixcloud.io\/tour\/. \u0412\u044b \u043d\u0430\u0432\u0435\u0440\u043d\u044f\u043a\u0430 \u0443\u0436\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0432\u0441\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u043d\u0430\u0448\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 \u0438\u0437 \u0441\u0435\u0431\u044f \u0444\u0430\u0439\u043b\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u044b \u043d\u0430 \u044d\u0442\u043e\u043c \u044f\u0437\u044b\u043a\u0435, \u0430 \u043f\u043e\u0442\u043e\u043c\u0443 \u0435\u0433\u043e \u0437\u043d\u0430\u043d\u0438\u0435(\u0445\u043e\u0442\u044c \u0438 \u043d\u0435 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0436\u0438\u0437\u043d\u0435\u043d\u043d\u043e \u0432\u0430\u0436\u043d\u044b\u043c) \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043e\u0431\u043b\u0435\u0433\u0447\u0438\u0442 \u0432\u0430\u043c \u0440\u0430\u0431\u043e\u0442\u0443. \u041d\u0435 \u043f\u043e\u0436\u0430\u043b\u0435\u0439\u0442\u0435 \u0434\u0432\u0443\u0445-\u0442\u0440\u0451\u0445 \u0447\u0430\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u044d\u043a\u043e\u043d\u043e\u043c\u044f\u0442 \u0432\u0430\u043c \u0432\u0440\u0435\u043c\u044f \u043d\u0430 \u043f\u043e\u043d\u0438\u043c\u0430\u043d\u0438\u0435 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c, \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e \u043a\u043e\u0433\u0434\u0430 \u043c\u044b \u043a\u043e\u0441\u043d\u0451\u043c\u0441\u044f \u0444\u043b\u0435\u0439\u043a\u043e\u0432.\u041a\u0430\u043a\u043e\u0432\u043e \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u0435\u043b \u043d\u0430 \u0434\u0430\u043d\u043d\u044b\u0439 \u043c\u043e\u043c\u0435\u043d\u0442? \u041a\u0430\u043a \u044f \u0438 \u0433\u043e\u0432\u043e\u0440\u0438\u043b \u0432 \u043f\u0440\u0435\u0434\u0438\u0441\u043b\u043e\u0432\u0438\u0438, \u044d\u0442\u0430 \u0441\u0442\u0430\u0442\u044c\u044f \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0435\u043d\u0438\u0435\u043c \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043a\u0430, \u0430 \u044d\u0442\u043e \u0437\u043d\u0430\u0447\u0438\u0442, \u0447\u0442\u043e \u0443 \u043d\u0430\u0441 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0437\u043c\u0435\u0447\u0435\u043d\u043d\u044b\u0439 \u0434\u0438\u0441\u043a, \u0430 \u0432 \u043f\u0430\u043f\u043a\u0435 \/tmp \u0441\u0435\u0439\u0447\u0430\u0441 \u043b\u0435\u0436\u0438\u0442 disko-config.nix(\u043d\u0435 \u0437\u0440\u044f \u043c\u044b \u0435\u0433\u043e \u0442\u0443\u0434\u0430 \u0441\u043f\u0440\u044f\u0442\u0430\u043b\u0438).1. \u0413\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c \u0444\u0430\u0439\u043b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438\u0421\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u043e\u043a\u043e\u043d\u0447\u0430\u043d\u0438\u044f \u0440\u0430\u0437\u043c\u0435\u0442\u043a\u0438 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \/mnt\/etc\/nixos, \u0433\u0434\u0435 \u0438 \u0431\u0443\u0434\u0443\u0442 \u0445\u0440\u0430\u043d\u0438\u0442\u044c\u0441\u044f \u0412\u0421\u0415 \u043d\u0430\u0448\u0438 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438: configuration.nix \u0438 disko-config.nix:$ sudo mkdir -p \/mnt\/etc\/nixos\u0410 \u0437\u0430\u0442\u0435\u043c \u0441\u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430\u0448 disko-config.nix \u0432 \u044d\u0442\u0443 \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0438 \u0441\u0430\u043c\u0438\u043c \u043f\u0435\u0440\u0435\u0439\u0442\u0438 \u0432 \u043d\u0435\u0451:$ sudo cp \/tmp\/disko-config.nix \/mnt\/etc\/nixos$ cd \/mnt\/etc\/nixos\u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u0435\u043c configuration.nix:$ sudo nixos-generate-config &#8212;no-filesystems &#8212;root \/mntwriting \/mnt\/etc\/nixos\/hardware-configuration.nix&#8230;writing \/mnt\/etc\/nixos\/configuration.nix&#8230;For more hardware-specific settings, see https:\/\/github.com.\u0422\u0435\u043f\u0435\u0440\u044c \u0432 \u043d\u0430\u0448\u0435\u0439 \u043f\u0430\u043f\u043a\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c \u0434\u0432\u0430 \u043d\u043e\u0432\u044b\u0445 \u0444\u0430\u0439\u043b\u0430:configuraton.nix &#8212; \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0444\u0430\u0439\u043b \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b. \u0418\u043c\u0435\u043d\u043d\u043e \u0432 \u043d\u0451\u043c \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438, \u043f\u0430\u043a\u0435\u0442\u044b, \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0441\u043b\u0443\u0436\u0431\u044b \u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u0435.hardware-configuration.nix &#8212; \u0444\u0430\u0439\u043b \u0441 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c\u0438 \u043d\u0430\u0448\u0435\u0433\u043e \u0436\u0435\u043b\u0435\u0437\u0430. \u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u043d\u0443\u0436\u043d\u044b\u0435 \u043c\u043e\u0434\u0443\u043b\u0438 \u044f\u0434\u0440\u0430 \u0438 \u0444\u0430\u0439\u043b\u043e\u0432\u0443\u044e \u0441\u0438\u0441\u0442\u0435\u043c\u0443(\u041d\u0415 \u0412 \u041d\u0410\u0428\u0415\u041c \u0421\u041b\u0423\u0427\u0410\u0415!)\u041d\u043e \u043f\u0435\u0440\u0435\u0434 \u0442\u0435\u043c, \u043a\u0430\u043a \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u043a \u043d\u0438\u043c, \u0434\u0430\u0432\u0430\u0439\u0442\u0435 \u0440\u0430\u0437\u0431\u0435\u0440\u0451\u043c, \u043a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 nixos-generate-config \u0438 \u0447\u0442\u043e \u043e\u043d\u0430 \u0442\u043e\u043b\u044c\u043a\u043e \u0447\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u043b\u0430:nixos-generate-config &#8212; \u041e\u043d\u0430 \u0441\u043a\u0430\u043d\u0438\u0440\u0443\u0435\u0442 \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0436\u0435\u043b\u0435\u0437\u043e \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0430(\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440, \u0432\u0438\u0434\u0435\u043e\u043a\u0430\u0440\u0442\u0443, \u0441\u0435\u0442\u0435\u0432\u044b\u0435 \u0430\u0434\u0430\u043f\u0442\u0435\u0440\u044b) \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u0438\u0441\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u0435 \u0444\u0430\u0439\u043b\u044b \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u0434\u043b\u044f \u043d\u043e\u0432\u043e\u0439 \u041e\u0421.&#8212;no-filesystems &#8212; \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0444\u043b\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u0440\u0438\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0435 \u043f\u0440\u043e\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u044d\u0442\u0430\u043f \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0438\u0441\u043a\u043e\u0432\u044b\u0445 \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432 \u0438 \u0442\u043e\u0447\u0435\u043a \u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. \u041e\u043d \u043e\u0442\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u044e \u0431\u043b\u043e\u043a\u043e\u0432 \u0441 UUID \u0444\u0430\u0439\u043b\u043e\u0432\u044b\u0445 \u0441\u0438\u0441\u0442\u0435\u043c, \u0447\u0442\u043e\u0431\u044b \u043e\u043d\u0438 \u043d\u0435 \u0434\u0443\u0431\u043b\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430\u0448\u0435\u0433\u043e disko-config.nix. \u0418\u043c\u0435\u043d\u043d\u043e \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u044f \u043d\u0435\u0439 hardware-configuration.nix \u043d\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0434\u0438\u0441\u043a\u0435, \u043a \u043d\u0430\u0448\u0435\u043c\u0443 \u0441\u0447\u0430\u0441\u0442\u044c\u044e.&#8212;root \/mnt &#8212; \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0443\u0442\u0438\u043b\u0438\u0442\u0435, \u043a\u0443\u0434\u0430 \u0438\u043c\u0435\u043d\u043d\u043e \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u0441\u0433\u0435\u043d\u0435\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u0444\u0430\u0439\u043b\u044b. \u041f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043e\u043d\u0430 \u043f\u044b\u0442\u0430\u0435\u0442\u0441\u044f \u043f\u0438\u0441\u0430\u0442\u044c \u0432 \u043a\u043e\u0440\u043d\u0435\u0432\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u044b(\/etc\/nixos\/), \u043d\u043e \u043f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u043c\u044b \u0441\u0438\u0434\u0438\u043c \u0432 live-\u043e\u0431\u0440\u0430\u0437\u0435, \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e \u0441\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u044c \u043a\u043e\u043d\u0444\u0438\u0433\u0438 \u043d\u0430 \u043d\u0430\u0448 \u043d\u0430\u0441\u0442\u043e\u044f\u0449\u0438\u0439 \u0436\u0435\u0441\u0442\u043a\u0438\u0439 \u0434\u0438\u0441\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u0435\u0439\u0447\u0430\u0441 \u0441\u043c\u043e\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0432\u043d\u0443\u0442\u0440\u0438 \u043f\u0430\u043f\u043a\u0438 \/mnt. \u0412 \u0438\u0442\u043e\u0433\u0435 \u0444\u0430\u0439\u043b\u044b \u0437\u0430\u043f\u0438\u0441\u044b\u0432\u0430\u044e\u0442\u0441\u044f \u043f\u043e \u043f\u0443\u0442\u0438 \/mnt\/etc\/nixos\/.\u0412\u043e\u0442, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 hardware-configuration.nix \u0443 \u043c\u0435\u043d\u044f. \u0443 \u0432\u0430\u0441, \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0432\u0430\u0448\u0435\u0433\u043e \u0436\u0435\u043b\u0435\u0437\u0430, \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443. \u0424\u0430\u0439\u043b \u044d\u0442\u043e\u0442 \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0440\u0435\u0434\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c, \u0435\u0441\u043b\u0438 \u0432\u044b \u043d\u0435 \u0437\u043d\u0430\u0435\u0442\u0435, \u0447\u0442\u043e \u0434\u0435\u043b\u0430\u0435\u0442\u0435:# Do not modify this file!  It was generated by \u2018nixos-generate-config\u2019# and may be overwritten by future invocations.  Please make changes# to \/etc\/nixos\/configuration.nix instead.{ config, lib, pkgs, modulesPath, &#8230; }:{  imports =    [ (modulesPath + &#171;\/profiles\/qemu-guest.nix&#187;)    ];  boot.initrd.availableKernelModules = [ &#171;ahci&#187; &#171;xhci_pci&#187; &#171;virtio_pci&#187; &#171;sr_mod&#187; &#171;virtio_blk&#187; ];  boot.initrd.kernelModules = [ &#171;dm-snapshot&#187; ];  boot.kernelModules = [ &#171;kvm-intel&#187; ];  boot.extraModulePackages = [ ];  nixpkgs.hostPlatform = lib.mkDefault &#171;x86_64-linux&#187;;}\u041d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0444\u0444\u0442\u043e\u043f\u0430: \u0412\u043e\u043e\u0431\u0449\u0435, \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u0436\u0435\u043b\u0435\u0437\u0430 \u0432 NixOs &#8212; \u044d\u0442\u043e \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0430\u044f \u0442\u0435\u043c\u0430. \u041d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u044e\u0437\u0435\u0440\u044b(\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u043c\u0435\u043d\u044f) \u0438 \u0432\u043e\u0432\u0441\u0435 \u0443\u0434\u0430\u043b\u044f\u044e\u0442 hardware-configuration.nix, \u0442\u0430\u043a \u043a\u0430\u043a \u043d\u0430\u0441\u0442\u0440\u0430\u0438\u0432\u0430\u044e\u0442 \u0432\u0441\u0451 \u043f\u043e-\u0441\u0432\u043e\u0435\u043c\u0443. \u0412 \u044d\u0442\u043e\u043c \u043d\u0435\u0442 \u043d\u0438\u0447\u0435\u0433\u043e \u0441\u0442\u0440\u0430\u0448\u043d\u043e\u0433\u043e \u0438 \u0432 \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c, \u043c\u044b \u043f\u043e\u0433\u043e\u0432\u043e\u0440\u0438\u043c \u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u043f\u043e\u0434 \u0436\u0435\u043b\u0435\u0437\u043e \u043f\u043e\u043f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435.2. \u0421\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u0430 configuration.nix\u0414\u0430\u0432\u0430\u0439\u0442\u0435 \u0432\u0437\u0433\u043b\u044f\u043d\u0435\u043c, \u043a\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0441\u0430\u043c &#171;\u043d\u0435\u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043d\u044b\u0439&#187; configuration.nix \u043f\u043e\u0441\u043b\u0435 nixos-generate-config:# Edit this configuration file to define what should be installed on# your system. Help is available in the configuration.nix(5) man page, on# https:\/\/search.nixos.org\/options and in the NixOS manual (`nixos-help`).{ config, lib, pkgs, &#8230; }:{  imports =    [ # Include the results of the hardware scan.      .\/hardware-configuration.nix    ];  # Use the systemd-boot EFI boot loader.  boot.loader.systemd-boot.enable = true;  boot.loader.efi.canTouchEfiVariables = true;  # networking.hostName = &#171;nixos&#187;; # Define your hostname.  # Configure network connections interactively with nmcli or nmtui.  networking.networkmanager.enable = true;  # Set your time zone.  # time.timeZone = &#171;Europe\/Amsterdam&#187;;  # Configure network proxy if necessary  # networking.proxy.default = &#171;http:\/\/user:password@proxy:port\/&#187;;  # networking.proxy.noProxy = &#171;127.0.0.1,localhost,internal.domain&#187;;  # Select internationalisation properties.  # i18n.defaultLocale = &#171;en_US.UTF-8&#187;;  # console = {  #   font = &#171;Lat2-Terminus16&#187;;  #   keyMap = &#171;us&#187;;  #   useXkbConfig = true; # use xkb.options in tty.  # };  # Enable the X11 windowing system.  # services.xserver.enable = true;    # Configure keymap in X11  # services.xserver.xkb.layout = &#171;us&#187;;  # services.xserver.xkb.options = &#171;eurosign:e,caps:escape&#187;;  # Enable CUPS to print documents.  # services.printing.enable = true;  # Enable sound.  # services.pulseaudio.enable = true;  # OR  # services.pipewire = {  #   enable = true;  #   pulse.enable = true;  # };  # Enable touchpad support (enabled default in most desktopManager).  # services.libinput.enable = true;  # Define a user account. Don&#8217;t forget to set a password with \u2018passwd\u2019.  # users.users.alice = {  #   isNormalUser = true;  #   extraGroups = [ &#171;wheel&#187; ]; # Enable \u2018sudo\u2019 for the user.  #   packages = with pkgs; [  #     tree  #   ];  # };  # programs.firefox.enable = true;  # List packages installed in system profile.  # You can use https:\/\/search.nixos.org\/ to find more packages (and options).  # environment.systemPackages = with pkgs; [  #   vim # Do not forget to add an editor to edit configuration.nix! The Nano editor is also installed by default.  #   wget  # ];  # Some programs need SUID wrappers, can be configured further or are  # started in user sessions.  # programs.mtr.enable = true;  # programs.gnupg.agent = {  #   enable = true;  #   enableSSHSupport = true;  # };  # List services that you want to enable:  # Enable the OpenSSH daemon.  # services.openssh.enable = true;  # Open ports in the firewall.  # networking.firewall.allowedTCPPorts = [ &#8230; ];  # networking.firewall.allowedUDPPorts = [ &#8230; ];  # Or disable the firewall altogether.  # networking.firewall.enable = false;  # Copy the NixOS configuration file and link it from the resulting system  # (\/run\/current-system\/configuration.nix). This is useful in case you  # accidentally delete configuration.nix.  # system.copySystemConfiguration = true;  # This option defines the first version of NixOS you have installed on this particular machine,  # and is used to maintain compatibility with application data (e.g. databases) created on older NixOS versions.  #  # Most users should NEVER change this value after the initial install, for any reason,  # even if you&#8217;ve upgraded your system to a new NixOS release.  #  # This value does NOT affect the Nixpkgs version your packages and OS are pulled from,  # so changing it will NOT upgrade your system &#8212; see https:\/\/nixos.org\/manual\/nixos\/stable\/#sec-upgrading for how  # to actually do that.  #  # This value being lower than the current NixOS release does NOT mean your system is  # out of date, out of support, or vulnerable.  #  # Do NOT change this value unless you have manually inspected all the changes it would make to your configuration,  # and migrated your data accordingly.  #  # For more information, see `man configuration.nix` or https:\/\/nixos.org\/manual\/nixos\/stable\/options#opt-system.stateVersion .  system.stateVersion = &#171;26.05&#187;; # Did you read the comment?}\u041a\u0430\u043a \u0432\u0438\u0434\u0438\u0442\u0435, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u0443\u0436\u0435 \u043f\u043e\u0437\u0430\u0431\u043e\u0442\u0438\u043b\u0438\u0441\u044c \u043e \u043d\u0430\u0441 \u0438 \u0437\u0430\u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043b\u0438 \u0431\u043e\u043b\u044c\u0448\u0443\u044e \u0447\u0430\u0441\u0442\u044c \u0432\u0441\u0435\u0433\u043e \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u043d\u0430\u043c \u043d\u0443\u0436\u043d\u043e, \u0447\u0442\u043e\u0431\u044b \u043c\u044b \u043c\u043e\u0433\u043b\u0438 \u043f\u0440\u043e\u0441\u0442\u043e \u0443\u0431\u0440\u0430\u0442\u044c \u0440\u0435\u0448\u0451\u0442\u043a\u0443 \u0441 \u043d\u0443\u0436\u043d\u044b\u0445 \u043d\u0430\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. \u0427\u0442\u043e\u0431\u044b \u043d\u0430\u043c \u0431\u044b\u043b\u043e \u043b\u0435\u0433\u0447\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c, \u044f \u0443\u0434\u0430\u043b\u044e \u043d\u0435\u043d\u0443\u0436\u043d\u0443\u044e \u0441\u043f\u0440\u0430\u0432\u043e\u0447\u043d\u0443\u044e \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u0438 \u043f\u043e\u043b\u0443\u0447\u0443 \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u043d\u0444\u0438\u0433(\u0432\u0430\u043c \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u044f \u0434\u0435\u043b\u0430\u044e \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430):{ config, lib, pkgs, &#8230; }:{  imports =    [      .\/hardware-configuration.nix      .\/disko-config.nix # \u041e\u0411\u042f\u0417\u0410\u0422\u0415\u041b\u042c\u041d\u041e \u0423\u041a\u0410\u0416\u0418\u0422\u0415 \u042d\u0422\u041e\u0422 \u0424\u0410\u0419\u041b!    ];          # &#8212; 1. \u0417\u0410\u0413\u0420\u0423\u0417\u0427\u0418\u041a(\u043c\u043d\u0435 \u043f\u043e \u0434\u0435\u0444\u043e\u043b\u0442\u0443 \u0434\u0430\u043b\u043e systemd-boot) &#8212;  boot.loader.systemd-boot.enable = true;  boot.loader.efi.canTouchEfiVariables = true;  # &#8212; 2. \u041d\u0410\u0421\u0422\u0420\u041e\u0419\u041a\u0410 \u0421\u0415\u0422\u0418 &#8212;  # networking.hostName = &#171;nixos&#187;;  # networking.firewall.enable = false;  networking.networkmanager.enable = true;  # &#8212; 3. \u041b\u041e\u041a\u0410\u041b\u0418\u0417\u0410\u0426\u0418\u042f: \u0412\u0420\u0415\u041c\u042f \u0418 \u042f\u0417\u042b\u041a &#8212;  # time.timeZone = &#171;Europe\/Amsterdam&#187;;  # i18n.defaultLocale = &#171;en_US.UTF-8&#187;;  # &#8212; 4. \u0417\u0412\u0423\u041a &#8212;  # services.pulseaudio.enable = true;  #  # services.pipewire = {  #   enable = true;  #   pulse.enable = true;  # };  # &#8212; 5. \u0422\u0410\u0427\u041f\u0410\u0414 &#8212;  # services.libinput.enable = true;  # &#8212; 6. \u041f\u041e\u041b\u042c\u0417\u041e\u0412\u0410\u0422\u0415\u041b\u042c &#8212;  # users.users.alice = {  #   isNormalUser = true;  #   extraGroups =&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-492192","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/492192","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492192"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/492192\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492192"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492192"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492192"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}