mirror of
https://github.com/divnix/digga.git
synced 2024-12-24 08:32:54 +03:00
packages: export overlays as packages
This commit is contained in:
parent
7219c38712
commit
219975f9cc
13
flake.nix
13
flake.nix
@ -12,7 +12,7 @@
|
||||
let
|
||||
inherit (builtins) attrNames attrValues readDir;
|
||||
inherit (nixos) lib;
|
||||
inherit (lib) removeSuffix recursiveUpdate;
|
||||
inherit (lib) removeSuffix recursiveUpdate genAttrs filterAttrs;
|
||||
inherit (utils) pathsToImportedAttrs;
|
||||
|
||||
utils = import ./lib/utils.nix { inherit lib; };
|
||||
@ -54,7 +54,16 @@
|
||||
in
|
||||
pathsToImportedAttrs overlayPaths;
|
||||
|
||||
packages."${system}" = (self.overlay osPkgs osPkgs);
|
||||
packages."${system}" =
|
||||
let
|
||||
packages = self.overlay osPkgs osPkgs;
|
||||
overlays = lib.filterAttrs (n: v: n != "pkgs") self.overlays;
|
||||
overlayPkgs =
|
||||
genAttrs
|
||||
(attrNames overlays)
|
||||
(name: (overlays."${name}" osPkgs osPkgs)."${name}");
|
||||
in
|
||||
recursiveUpdate packages overlayPkgs;
|
||||
|
||||
nixosModules =
|
||||
let
|
||||
|
@ -1,6 +0,0 @@
|
||||
final: prev: {
|
||||
# wrapper to specify config file
|
||||
qute = prev.writeShellScriptBin "qute" ''
|
||||
QT_QPA_PLATFORMTHEME= exec ${prev.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@"
|
||||
'';
|
||||
}
|
@ -19,4 +19,13 @@ in
|
||||
|
||||
systemPackages = with pkgs; [ qute qutebrowser mpv youtubeDL ];
|
||||
};
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
# wrapper to specify config file
|
||||
qute = prev.writeShellScriptBin "qute" ''
|
||||
QT_QPA_PLATFORMTHEME= exec ${prev.qutebrowser}/bin/qutebrowser -C /etc/xdg/qutebrowser/config.py "$@"
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user