Chris' Budget Flake Fix

 avatar
unknown
nix
15 hours ago
899 B
7
Indexable
{
  description = "My NixOS configuration with stable + unstable";

  inputs = {
    nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.05";
    nixpkgs-unstable.url = "github:NixOS/nixpkgs/nixos-unstable";
  };

  outputs = { nixpkgs, nixpkgs-unstable, ... }:
    let
      system = "x86_64-linux";
      
      pkgs = import nixpkgs {
        inherit system;
        config.allowUnfree = true;
      };

      unstablePkgs = import nixpkgs-unstable {
        inherit system;
        config.allowUnfree = true;
      };
    in
    {
      nixosConfigurations.laptop = nixpkgs.lib.nixosSystem {
        inherit system;
        
        specialArgs = { inherit unstablePkgs; };
        
        modules = [
          ./configuration.nix
          { 
            environment.systemPackages = 
              (import ./packages.nix { inherit pkgs unstablePkgs; }).all;
          }
        ];
      };
    };
}
Editor is loading...
Leave a Comment