nixos-25.11 ships 0.52.1; the fix for XWayland resize lag landed in 0.52.2, and upstream is already on 0.55.0 by now. Add hyprwm/Hyprland as a flake input and route programs.hyprland and the HM wayland module through it. Doesn't `follows` our nixpkgs — upstream Hyprland needs newer stdenv than 25.11 provides. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
54 lines
1.6 KiB
Nix
54 lines
1.6 KiB
Nix
{
|
|
description = "FredOS NixOS configuration";
|
|
inputs = {
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
home-manager-stable = {
|
|
url = "github:nix-community/home-manager/release-25.11";
|
|
inputs.nixpkgs.follows = "nixpkgs-stable";
|
|
};
|
|
|
|
zen-browser = {
|
|
url = "github:0xc000022070/zen-browser-flake";
|
|
inputs = {
|
|
nixpkgs.follows = "nixpkgs-stable";
|
|
home-manager.follows = "home-manager-stable";
|
|
};
|
|
};
|
|
|
|
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
|
|
|
# Pin Hyprland to upstream so we get the 0.52.2+ fixes ahead of
|
|
# nixos-25.11's slower bump cadence. Doesn't follow our nixpkgs —
|
|
# upstream needs newer stdenv than 25.11 ships.
|
|
hyprland.url = "github:hyprwm/Hyprland";
|
|
};
|
|
outputs =
|
|
{ self
|
|
, nixpkgs-stable
|
|
, home-manager-stable
|
|
, zen-browser
|
|
, nix-cachyos-kernel
|
|
, hyprland
|
|
, ...
|
|
} @ inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
mkHost = hostname: pkgsInput: hmInput: pkgsInput.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; };
|
|
modules = [
|
|
./hosts/${hostname}.nix
|
|
./hosts/hardware/${hostname}.nix
|
|
./common.nix
|
|
hmInput.nixosModules.home-manager
|
|
];
|
|
};
|
|
in
|
|
{
|
|
nixosConfigurations = {
|
|
FredOS-Gaming = mkHost "FredOS-Gaming" nixpkgs-stable home-manager-stable;
|
|
FredOS-Mediaserver = mkHost "FredOS-Mediaserver" nixpkgs-stable home-manager-stable;
|
|
FredOS-Macbook = mkHost "FredOS-Macbook" nixpkgs-stable home-manager-stable;
|
|
};
|
|
};
|
|
}
|