Adds nixpkgs unstable as a flake input and exposes pkgs-unstable via specialArgs. code-server uses the unstable package so the Claude Code extension version requirement is satisfied. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
66 lines
2.1 KiB
Nix
66 lines
2.1 KiB
Nix
{
|
|
description = "FredOS NixOS configuration";
|
|
|
|
inputs = {
|
|
nixpkgs-stable.url = "github:NixOS/nixpkgs/nixos-25.11";
|
|
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
|
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";
|
|
|
|
proton-cachyos-nix.url = "github:powerofthe69/proton-cachyos-nix";
|
|
|
|
# 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";
|
|
|
|
# Stylix release branch matching nixos-25.11. Master references
|
|
# options (services.displayManager.generic) that only exist in
|
|
# newer nixpkgs schemas.
|
|
stylix.url = "github:nix-community/stylix/release-25.11";
|
|
};
|
|
outputs =
|
|
{ self
|
|
, nixpkgs-stable
|
|
, nixpkgs
|
|
, home-manager-stable
|
|
, zen-browser
|
|
, nix-cachyos-kernel
|
|
, hyprland
|
|
, stylix
|
|
, proton-cachyos-nix
|
|
, ...
|
|
} @ inputs:
|
|
let
|
|
system = "x86_64-linux";
|
|
mkHost = hostname: pkgsInput: hmInput: pkgsInput.lib.nixosSystem {
|
|
inherit system;
|
|
specialArgs = { inherit inputs; pkgs-unstable = nixpkgs.legacyPackages.${system}; };
|
|
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;
|
|
};
|
|
};
|
|
}
|