整理 NixOS 配置:面向 i7-12700F + RTX 4060 的模块化桌面配置

从当前 /etc/nixos 拆出 common/plasma/中文/应用/打印模块,新增 NVIDIA 独显支持,并去掉原机硬件 UUID。
This commit is contained in:
whc
2026-09-19 15:50:30 +08:00
commit ad9bf8035e
13 changed files with 641 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
{
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;
};
}