{ description = "whc NixOS — desktop (i7-12700F + RTX 4060)"; inputs = { nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; }; outputs = { self, nixpkgs, ... }: let system = "x86_64-linux"; in { nixosConfigurations.desktop = nixpkgs.lib.nixosSystem { inherit system; modules = [ ./hosts/desktop ]; }; # 无 flake 时也可:把本仓库拷到 /etc/nixos 后 nixos-rebuild switch formatter.${system} = nixpkgs.legacyPackages.${system}.nixfmt-rfc-style; }; }