diff --git a/flake.nix b/flake.nix index e91aa97..62f9a87 100644 --- a/flake.nix +++ b/flake.nix @@ -3,11 +3,11 @@ inputs = { nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - + chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable"; nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release"; - + zen-browser.url = "github:0xc000022070/zen-browser-flake"; copetch.url = "github:elwrcl/copetch"; @@ -36,46 +36,53 @@ outputs = inputs@{ self, nixpkgs, chaotic, home-manager, nix-cachyos-kernel, ... }: let system = "x86_64-linux"; - + chaoticOverlay = chaotic.overlays.default; cachyosKernelOverlay = nix-cachyos-kernel.overlays.pinned; - + copetchOverlay = final: prev: { copetch = inputs.copetch.packages.${system}.default; }; - in { - nixosConfigurations = { - copland = nixpkgs.lib.nixosSystem { - specialArgs = { - inherit inputs system; - zen-browser = inputs.zen-browser; - nix-cachyos-kernel = nix-cachyos-kernel; + mesaOverlay = final: prev: { + mesa = prev.mesa.overrideAttrs (old: { + mesonFlags = (old.mesonFlags or [ ]) ++ [ "-Dgallium-nine=true" ]; + }); + }; + + in + { + nixosConfigurations = { + copland = nixpkgs.lib.nixosSystem { + specialArgs = { + inherit inputs system; + zen-browser = inputs.zen-browser; + nix-cachyos-kernel = nix-cachyos-kernel; + }; + + modules = [ + { nixpkgs.hostPlatform = system; } + chaotic.nixosModules.default + home-manager.nixosModules.home-manager + + { + nixpkgs.overlays = [ chaoticOverlay cachyosKernelOverlay copetchOverlay mesaOverlay ]; + nixpkgs.config.allowUnfree = true; + } + + { + home-manager = { + useGlobalPkgs = true; + useUserPackages = true; + extraSpecialArgs = { inherit inputs system; }; + users.elars = import ./home; + }; + } + + ./machine.nix + ./nixos/default.nix + ]; }; - - modules = [ - { nixpkgs.hostPlatform = system; } - chaotic.nixosModules.default - home-manager.nixosModules.home-manager - - { - nixpkgs.overlays = [ chaoticOverlay cachyosKernelOverlay ]; - nixpkgs.config.allowUnfree = true; - } - - { - home-manager = { - useGlobalPkgs = true; - useUserPackages = true; - extraSpecialArgs = { inherit inputs system; }; - users.elars = import ./home; - }; - } - - ./machine.nix - ./nixos/default.nix - ]; }; }; - }; -} \ No newline at end of file +}