move overkays to modules

This commit is contained in:
jopejoe1 2024-01-02 19:32:20 +01:00
parent 60ccfe7539
commit 536fc32216
8 changed files with 59 additions and 49 deletions

View file

@ -86,7 +86,6 @@
modules = [ modules = [
./systems/kami ./systems/kami
self.outputs.nixosModules.default self.outputs.nixosModules.default
./overlays
]; ];
}; };
yokai = nixpkgs.lib.nixosSystem { yokai = nixpkgs.lib.nixosSystem {
@ -95,7 +94,6 @@
modules = [ modules = [
./systems/yokai ./systems/yokai
self.outputs.nixosModules.default self.outputs.nixosModules.default
./overlays
]; ];
}; };
inugami = nixpkgs.lib.nixosSystem { inugami = nixpkgs.lib.nixosSystem {
@ -104,7 +102,6 @@
modules = [ modules = [
./systems/inugami ./systems/inugami
self.outputs.nixosModules.default self.outputs.nixosModules.default
./overlays
]; ];
}; };
tuny = nixpkgs.lib.nixosSystem { tuny = nixpkgs.lib.nixosSystem {
@ -118,7 +115,7 @@
steamdeck = nixpkgs.lib.nixosSystem { steamdeck = nixpkgs.lib.nixosSystem {
system = "x86_64-linux"; system = "x86_64-linux";
specialArgs = inputs; specialArgs = inputs;
modules = [ ./systems/steamdeck self.outputs.nixosModules.default ./overlays ]; modules = [ ./systems/steamdeck self.outputs.nixosModules.default ];
}; };
}; };
}; };

View file

@ -12,6 +12,7 @@
./minecraft-server ./minecraft-server
./moodle-dl ./moodle-dl
./nix ./nix
./overlays
./plasma ./plasma
./plasma/6.nix ./plasma/6.nix
./printing ./printing

View file

@ -41,6 +41,10 @@ in {
]; ];
}; };
nixpkgs = {
config.allowUnfree = true;
};
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
deploy-rs deploy-rs
nixfmt nixfmt

View file

@ -0,0 +1,52 @@
{ config, lib, self, ... }:
let cfg = config.jopejoe1.overlays;
in {
options.jopejoe1.overlays = {
enable = lib.mkEnableOption "Enable Overlays";
};
config = lib.mkIf cfg.enable {
nixpkgs = {
overlays = [
self.inputs.prismlauncher.overlays.default
self.inputs.nur.overlay
(_self: super: rec {
tela-icon-theme = super.tela-icon-theme.overrideAttrs
(_old: { src = self.inputs.tela-icon-theme; });
prismlauncher = super.prismlauncher.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
self.inputs.prism-game-options-patch
./prism-ftb.patch
];
});
#noto-fonts-color-emoji = pkgs.noto-fonts-color-emoji_withExtraFlags;
libadwaita = super.libadwaita.overrideAttrs (old: {
patches = (old.patches or [ ])
++ [ ./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"; };
})
];
};
};
}

View file

@ -1,45 +0,0 @@
{ prismlauncher, nur, self, config, ... }:
{
nixpkgs = {
config.allowUnfree = true;
overlays = [
prismlauncher.overlays.default
nur.overlay
(_self: super: rec {
tela-icon-theme = super.tela-icon-theme.overrideAttrs
(_old: { src = self.inputs.tela-icon-theme; });
prismlauncher = super.prismlauncher.overrideAttrs (old: {
patches = (old.patches or [ ]) ++ [
self.inputs.prism-game-options-patch
../patches/prism-ftb.patch
];
});
#noto-fonts-color-emoji = pkgs.noto-fonts-color-emoji_withExtraFlags;
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"; };
})
];
};
}

View file

@ -21,6 +21,7 @@
nix.enable = true; nix.enable = true;
plasma6.enable = true; plasma6.enable = true;
printing.enable = true; printing.enable = true;
overlays.enable = true;
steam.enable = true; steam.enable = true;
asf.enable = true; asf.enable = true;
minecraft-server.enable = true; minecraft-server.enable = true;