Files
whc-nixos/flake.nix
T
whc ad9bf8035e 整理 NixOS 配置:面向 i7-12700F + RTX 4060 的模块化桌面配置
从当前 /etc/nixos 拆出 common/plasma/中文/应用/打印模块,新增 NVIDIA 独显支持,并去掉原机硬件 UUID。
2026-09-19 15:50:30 +08:00

23 lines
543 B
Nix

{
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;
};
}