new file: flake.lock

modified:   home/git.nix
	modified:   hosts/README.md
	modified:   hosts/virtualbox/README.md
	modified:   hosts/virtualbox/configuration.nix
	modified:   modules/core/users.nix
	modified:   modules/desktop/pkg.nix
	modified:   modules/server/README.md
	modified:   profiles/README.md
This commit is contained in:
luochen570
2026-02-28 11:14:50 +08:00
parent 3659dc3e50
commit 26b5caa6d0
9 changed files with 300 additions and 31 deletions

View File

@@ -7,17 +7,14 @@
isNormalUser = true;
extraGroups = [ "wheel" ];
shell = pkgs.zsh;
}
// lib.optionalAttrs (!(config.sops.secrets ? "users/luochen570/passwordHash")) {
initialPassword = "Dly928730@..";
}
// lib.optionalAttrs (config.sops.secrets ? "users/luochen570/authorized_key") {
openssh.authorizedKeys.keyFiles = [ config.sops.secrets."users/luochen570/authorized_key".path ];
}
// lib.optionalAttrs (config.sops.secrets ? "users/luochen570/passwordHash") {
hashedPasswordFile = config.sops.secrets."users/luochen570/passwordHash".path;
};
users.users.${username}.initialPassword = lib.mkIf
(!(config.sops.secrets ? "users/luochen570/passwordHash"))
"Dly928730@..";
users.users.${username}.openssh.authorizedKeys.keyFiles = lib.mkIf
(config.sops.secrets ? "users/luochen570/authorized_key")
[ config.sops.secrets."users/luochen570/authorized_key".path ];
users.users.${username}.hashedPasswordFile = lib.mkIf
(config.sops.secrets ? "users/luochen570/passwordHash")
config.sops.secrets."users/luochen570/passwordHash".path;
}

View File

@@ -3,8 +3,8 @@
environment.systemPackages = with pkgs; [
firefox
google-chrome
linuxqq
wechat-uos
qq
wechat
xterm
kdePackages.kate
kdePackages.konsole

View File

@@ -9,5 +9,6 @@
├─ 📦 pkg.nix # 服务器常用软件包
├─ 🔐 ssh.nix # OpenSSH 参数
├─ 🐳 docker.nix # Docker 与清理策略
🧠 vscode-server.nix # VS Code Server 模块
📦 virtualbox-guest.nix # VirtualBox Guest 增强配置
└─ 🧠 vscode-server.nix # VS Code Server 模块
```