Files
NixOS-Configs/flake.nix
Anish Govind 9dcd863ee1 Revert nixpkgs follows for comfy-ui, pi and nixos-hardware
Forcing these inputs to follow the root nixpkgs changed the ComfyUI
package's derivation hash, which invalidated the binary cache and queued
a 91-derivation rebuild (the full ComfyUI Python closure plus cudnn, nccl
and libnvshmem). Restore each input's own locked nixpkgs and the original
flake.lock, which matches the already-built, cached closure.

A dry-build now reports nothing to build. The single-nixpkgs cleanup is
not worth forcing multi-hour CUDA rebuilds.
2026-09-19 01:51:43 -07:00

102 lines
2.5 KiB
Nix

{
description = "Multi-Machine NixOS Configuration";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-26.05";
nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
home-manager = {
url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs";
};
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
antigravity = {
url = "github:Hy4ri/antigravity-flake";
inputs.nixpkgs.follows = "nixpkgs";
};
comfy-ui = {
url = "github:utensils/comfyui-nix";
};
herdr = {
url = "github:herdrdev/herdr";
inputs.nixpkgs.follows = "nixpkgs";
};
pi = {
url = "github:lukasl-dev/pi.nix";
};
};
outputs =
inputs:
let
system = "x86_64-linux";
theme = import ./home/theme.nix;
commonModules = [
./modules/core
./modules/graphical
./modules/apps
inputs.home-manager.nixosModules.home-manager
(
{ config, ... }:
{
home-manager = {
useGlobalPkgs = true;
useUserPackages = true;
extraSpecialArgs = {
inherit inputs theme;
my = config.my;
};
backupFileExtension = "backup";
users.${config.my.username} = import ./home;
};
}
)
];
in
{
nixosConfigurations = {
hades = inputs.nixpkgs.lib.nixosSystem {
inherit system;
specialArgs = { inherit inputs; };
modules = commonModules ++ [
inputs.nixos-hardware.nixosModules.common-cpu-amd
./hosts/hades
];
};
};
formatter.${system} = inputs.nixpkgs.legacyPackages.${system}.nixfmt;
devShells.${system}.default =
let
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.antigravity.overlays.default ];
config.allowUnfree = true;
};
in
pkgs.mkShell {
packages = with pkgs; [
llvmPackages_latest.clang
llvmPackages_latest.lld
llvmPackages_latest.lldb
llvmPackages_latest.llvm
llvmPackages_latest.clang-tools
llvmPackages_latest.libcxx
rustup
uv
];
};
};
}