mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
add: gallium-nine
This commit is contained in:
1 parent
f9672724e4
commit
af1a5c3998
1 file changed
+43
-36
@@ -3,11 +3,11 @@
|
|||||||
|
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
|
|
||||||
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
chaotic.url = "github:chaotic-cx/nyx/nyxpkgs-unstable";
|
||||||
|
|
||||||
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
nix-cachyos-kernel.url = "github:xddxdd/nix-cachyos-kernel/release";
|
||||||
|
|
||||||
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
zen-browser.url = "github:0xc000022070/zen-browser-flake";
|
||||||
|
|
||||||
copetch.url = "github:elwrcl/copetch";
|
copetch.url = "github:elwrcl/copetch";
|
||||||
@@ -36,46 +36,53 @@
|
|||||||
outputs = inputs@{ self, nixpkgs, chaotic, home-manager, nix-cachyos-kernel, ... }:
|
outputs = inputs@{ self, nixpkgs, chaotic, home-manager, nix-cachyos-kernel, ... }:
|
||||||
let
|
let
|
||||||
system = "x86_64-linux";
|
system = "x86_64-linux";
|
||||||
|
|
||||||
chaoticOverlay = chaotic.overlays.default;
|
chaoticOverlay = chaotic.overlays.default;
|
||||||
cachyosKernelOverlay = nix-cachyos-kernel.overlays.pinned;
|
cachyosKernelOverlay = nix-cachyos-kernel.overlays.pinned;
|
||||||
|
|
||||||
copetchOverlay = final: prev: {
|
copetchOverlay = final: prev: {
|
||||||
copetch = inputs.copetch.packages.${system}.default;
|
copetch = inputs.copetch.packages.${system}.default;
|
||||||
};
|
};
|
||||||
|
|
||||||
in {
|
mesaOverlay = final: prev: {
|
||||||
nixosConfigurations = {
|
mesa = prev.mesa.overrideAttrs (old: {
|
||||||
copland = nixpkgs.lib.nixosSystem {
|
mesonFlags = (old.mesonFlags or [ ]) ++ [ "-Dgallium-nine=true" ];
|
||||||
specialArgs = {
|
});
|
||||||
inherit inputs system;
|
};
|
||||||
zen-browser = inputs.zen-browser;
|
|
||||||
nix-cachyos-kernel = nix-cachyos-kernel;
|
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
|
|
||||||
];
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
}
|
|
||||||
Reference in new issue
Block a user