Flakes/zh: Difference between revisions
Created page with "<syntaxhighlight lang="nix"> { inputs.nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable"; outputs = { self, nixpkgs, flake-compat }: let system = "x86_64-linux"; pkgs = import nixpkgs { inherit system; config.allowUnfree = true;}; in { ... }; } </syntaxhighlight>" Tags: Mobile edit Mobile web edit |
Created page with "== 启用 Flake 的 NixOS 配置 ==" |
||
| Line 356: | Line 356: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
< | <span id="NixOS_configuration_with_flakes"></span> | ||
== NixOS | == 启用 Flake 的 NixOS 配置 == | ||
<div lang="en" dir="ltr" class="mw-content-ltr"> | <div lang="en" dir="ltr" class="mw-content-ltr"> | ||