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 = { overlays = {
modifications = (import ./overlays/modifications { inherit inputs; }); modifications = (import ./overlays/modifications { inherit inputs; });
additions = (import ./overlays/additions { inherit inputs; });
}; };
nixosConfigurations = nixosConfigurations =

View file

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

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; inherit (prev) lib;
overlay-files = [ overlay-files = [
./helix.nix ./helix.nix
./spotify.nix
./niri.nix
]; ];
overlay-list = map (file: import file args) overlay-files; overlay-list = map (file: import file args) overlay-files;
in 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; [ environment.systemPackages = with pkgs; [
spotify spotify
]; ];