mirror of
https://codeberg.org/jopejoe1/nix-conf.git
synced 2025-01-01 17:56:51 +01:00
Move overlays into a module
This commit is contained in:
parent
eca4dcf216
commit
01b8e0a8ef
2 changed files with 54 additions and 65 deletions
67
flake.nix
67
flake.nix
|
@ -54,6 +54,7 @@
|
|||
./modules/steam
|
||||
./modules/minecraft-server
|
||||
./modules/users/jopejoe1
|
||||
./overlays
|
||||
nixos-hardware.nixosModules.common-cpu-intel
|
||||
nixos-hardware.nixosModules.common-gpu-intel
|
||||
nixos-hardware.nixosModules.common-gpu-nvidia
|
||||
|
@ -62,48 +63,6 @@
|
|||
nixos-hardware.nixosModules.common-pc-ssd
|
||||
nur.nixosModules.nur
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = [
|
||||
prismlauncher.overlays.default
|
||||
nur.overlay
|
||||
(self: super: {
|
||||
tela-icon-theme = super.tela-icon-theme.overrideAttrs (old: {
|
||||
src = inputs.tela-icon-theme;
|
||||
});
|
||||
prismlauncher = super.prismlauncher.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [
|
||||
inputs.prism-game-options-patch
|
||||
inputs.prism-ftb-patch
|
||||
];
|
||||
});
|
||||
libadwaita = super.libadwaita.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [
|
||||
./patches/adwaita-theming-support.patch
|
||||
];
|
||||
doCheck = false;
|
||||
});
|
||||
discord = (super.discord.overrideAttrs (old: {
|
||||
desktopItem = old.desktopItem.override (old: { exec = old.exec + " --disable-gpu-sandbox"; });
|
||||
})).override {
|
||||
withOpenASAR = true;
|
||||
withVencord = true;
|
||||
withTTS = true;
|
||||
};
|
||||
catppuccin-plymouth = super.catppuccin-plymouth.override {
|
||||
variant = "frappe";
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
];
|
||||
};
|
||||
yokai = nixpkgs.lib.nixosSystem {
|
||||
|
@ -119,32 +78,10 @@
|
|||
./modules/printing
|
||||
#./modules/ssh
|
||||
./modules/users/jopejoe1
|
||||
./overlays
|
||||
nixos-hardware.nixosModules.pine64-pinebook-pro
|
||||
nur.nixosModules.nur
|
||||
home-manager.nixosModules.home-manager
|
||||
{
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
overlays = [
|
||||
prismlauncher.overlays.default
|
||||
nur.overlay
|
||||
(self: super: {
|
||||
tela-icon-theme = super.tela-icon-theme.overrideAttrs (old: {
|
||||
src = inputs.tela-icon-theme;
|
||||
});
|
||||
discord = super.discord.overrideAttrs (old: {
|
||||
desktopItem = old.desktopItem.override (old: { exec = old.exec + " --disable-gpu-sandbox"; });
|
||||
});
|
||||
})
|
||||
];
|
||||
};
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
52
overlays/default.nix
Normal file
52
overlays/default.nix
Normal file
|
@ -0,0 +1,52 @@
|
|||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
nixpkgs = {
|
||||
config.allowUnfree = true;
|
||||
|
||||
overlays = [
|
||||
prismlauncher.overlays.default
|
||||
nur.overlay
|
||||
|
||||
(self: super: {
|
||||
|
||||
tela-icon-theme = super.tela-icon-theme.overrideAttrs (old: {
|
||||
src = inputs.tela-icon-theme;
|
||||
});
|
||||
|
||||
prismlauncher = super.prismlauncher.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [
|
||||
inputs.prism-game-options-patch
|
||||
inputs.prism-ftb-patch
|
||||
];
|
||||
});
|
||||
|
||||
libadwaita = super.libadwaita.overrideAttrs (old: {
|
||||
patches = (old.patches or []) ++ [
|
||||
./patches/adwaita-theming-support.patch
|
||||
];
|
||||
doCheck = false;
|
||||
});
|
||||
|
||||
discord = (super.discord.overrideAttrs (old: {
|
||||
desktopItem = old.desktopItem.override (old: { exec = old.exec + " --disable-gpu-sandbox"; });
|
||||
})).override {
|
||||
withOpenASAR = true;
|
||||
withVencord = true;
|
||||
withTTS = true;
|
||||
};
|
||||
|
||||
catppuccin-plymouth = super.catppuccin-plymouth.override {
|
||||
variant = "frappe";
|
||||
};
|
||||
})
|
||||
];
|
||||
};
|
||||
|
||||
home-manager = {
|
||||
useGlobalPkgs = true;
|
||||
useUserPackages = true;
|
||||
};
|
||||
|
||||
system.stateVersion = "23.05";
|
||||
}
|
Loading…
Reference in a new issue