From 33c7f0b6fdda0859a1401d3b4765f7e2e6617d03 Mon Sep 17 00:00:00 2001 From: luochen570 <1160510664@qq.com> Date: Tue, 26 May 2026 12:40:25 +0800 Subject: [PATCH] sync: merge s0.sermc.net LXC configuration - Add users.luochen570 user config - Add nix substituters (Tsinghua mirror) - Add nix experimental-features (nix-command, flakes) - Set system.stateVersion to 25.05 --- hosts/nixos-lxc/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hosts/nixos-lxc/configuration.nix b/hosts/nixos-lxc/configuration.nix index 65a0d44..e1d48fc 100644 --- a/hosts/nixos-lxc/configuration.nix +++ b/hosts/nixos-lxc/configuration.nix @@ -30,6 +30,12 @@ }; }; + # 用户账户配置 + users.users.luochen570 = { + isNormalUser = true; + extraGroups = [ "wheel" "networkmanager" ]; + }; + security.sudo.wheelNeedsPassword = false; services.resolved = { @@ -39,4 +45,8 @@ ''; }; + nix.settings.substituters = [ "https://mirrors.tuna.tsinghua.edu.cn/nix-channels/store" ]; + nix.settings.experimental-features = [ "nix-command" "flakes" ]; + + system.stateVersion = "25.05"; }