wrap niri and spotx overlays into overlay.modifications.

This commit is contained in:
Ulic-youthlic 2025-01-08 00:02:29 +08:00
parent 2f5ac0dfe1
commit 08aacf8c0d
7 changed files with 19 additions and 12 deletions

View file

@ -95,6 +95,7 @@
overlays = {
modifications = (import ./overlays/modifications { inherit inputs; });
additions = (import ./overlays/additions { inherit inputs; });
};
nixosConfigurations =

View file

@ -18,13 +18,10 @@
config = {
nixpkgs = {
overlays =
(with outputs; [
overlays.modifications
])
++ (with inputs; [
niri-flake.overlays.niri
]);
overlays = with outputs.overlays; [
modifications
additions
];
};
};
}

View file

@ -0,0 +1,9 @@
{ ... }@args:
final: prev:
let
inherit (prev) lib;
overlay-files = [
];
overlay-list = map (file: import file args) overlay-files;
in
(lib.composeManyExtensions overlay-list) final prev

View file

@ -4,6 +4,8 @@ let
inherit (prev) lib;
overlay-files = [
./helix.nix
./spotify.nix
./niri.nix
];
overlay-list = map (file: import file args) overlay-files;
in

View file

@ -0,0 +1 @@
{ inputs, ... }: inputs.niri-flake.overlays.niri

View file

@ -1 +1 @@
{ inputs, ... }: inputs.oskars-dotfiles.overlays.spotx

View file

@ -1,8 +1,5 @@
{ pkgs, inputs, ... }:
{ pkgs, ... }:
{
nixpkgs.overlays = [
inputs.oskars-dotfiles.overlays.spotx
];
environment.systemPackages = with pkgs; [
spotify
];