feat: move overlays to modules

This commit is contained in:
punkfairie 2025-05-26 18:27:35 -07:00
parent d952121242
commit 760cfcc059
Signed by: punkfairie
GPG key ID: B3C5488E9A1A7CA6
5 changed files with 18 additions and 7 deletions

View file

@ -14,10 +14,9 @@
};
# TODO: Move these to custom modules
overlays = with inputs; [
lix.overlays.default
nur.overlays.default
niri-flake.overlays.niri
overlays = [
# Lix pollutes my terminal with warnings if I move this to a module :(
inputs.lix.overlays.default
(import ./overlays/ddclient.nix)
(import ./overlays/firefox-addons {
@ -25,7 +24,6 @@
inherit inputs;
})
(import ./overlays/jetbrains.nix {inherit inputs;})
(import ./overlays/maple-mono-NF.nix)
(import ./overlays/marleyvim.nix {inherit inputs;})
(import ./overlays/wezterm.nix {inherit inputs;})

View file

@ -50,8 +50,14 @@
};
};
nixpkgs.config = {
allowUnfree = true;
nixpkgs = {
config = {
allowUnfree = true;
};
overlays = [
inputs.nur.overlays.default
];
};
# More useful repl.

View file

@ -1,5 +1,7 @@
{pkgs, ...}: {
config = {
nixpkgs.overlays = [(import ../../../overlays/maple-mono-NF.nix)];
stylix = {
enable = true;

View file

@ -4,6 +4,7 @@
osConfig,
lib,
pkgs,
inputs,
...
}: let
inherit (marleylib.module) mkEnableOption' enabled;
@ -22,6 +23,8 @@ in {
};
config = lib.mkIf (cfg.enable && pkgs.stdenv.isLinux) {
nixpkgs.overlays = [inputs.niri-flake.overlays.niri];
marleyos = {
shell.wayland = enabled;
programs = {

View file

@ -14,6 +14,8 @@ in {
imports = [inputs.niri-flake.nixosModules.niri];
config = lib.mkIf cfg.enable {
nixpkgs.overlays = [inputs.niri-flake.overlays.niri];
marleyos = {
shell.hyprlock = enabled;
programs = {