- nixpkgs: nixos-25.05 -> nixos-26.05 (rev 70cc4559) - home-manager: release-25.05 -> release-26.05 - fix 26.05 breaking changes: fcitx5-configtool/fcitx5-chinese-addons rename, resolved.extraConfig -> settings.Resolve, amdvlk removed (RADV default), desktop: import missing hardware-configuration.nix - home/git.nix: migrate deprecated userName/extraConfig to settings
48 lines
1.1 KiB
Nix
48 lines
1.1 KiB
Nix
{
|
|
description = "luochen570's NixOS configuration";
|
|
|
|
inputs = {
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
|
|
|
|
home-manager = {
|
|
url = "github:nix-community/home-manager/release-26.05";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# Nix4NvChad
|
|
nix4nvchad = {
|
|
url = "github:nix-community/nix4nvchad";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# NixOS WSL
|
|
nixos-wsl = {
|
|
url = "github:nix-community/NixOS-WSL/main";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
|
|
# VS Code Server
|
|
vscode-server.url = "github:nix-community/nixos-vscode-server";
|
|
|
|
# SOPS for Nix
|
|
sops-nix = {
|
|
url = "github:Mic92/sops-nix";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
};
|
|
|
|
outputs = inputs@{ nixpkgs, home-manager, ... }:
|
|
let
|
|
username = "luochen570";
|
|
hosts = import ./lib/hosts.nix;
|
|
mkHost = import ./lib/mkHost.nix {
|
|
inherit nixpkgs home-manager inputs;
|
|
};
|
|
mkConfiguredHost = hostname: cfg: mkHost ({
|
|
inherit hostname username;
|
|
} // cfg);
|
|
in {
|
|
nixosConfigurations = nixpkgs.lib.mapAttrs mkConfiguredHost hosts;
|
|
};
|
|
}
|