core: add apps
This commit is contained in:
parent
95e5685f53
commit
0a29cfdf1e
46
flake.nix
46
flake.nix
@ -8,27 +8,39 @@
|
|||||||
|
|
||||||
outputs = { self, nixpkgs, flake-utils }:
|
outputs = { self, nixpkgs, flake-utils }:
|
||||||
let
|
let
|
||||||
inherit (flake-utils.lib) defaultSystems flattenTree;
|
inherit (flake-utils.lib) eachDefaultSystem flattenTree;
|
||||||
inherit (nixpkgs.lib.attrsets) filterAttrs genAttrs mapAttrs;
|
inherit (nixpkgs.lib.attrsets) filterAttrs mapAttrs;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosModules = mapAttrs (_: path: import path) (import ./modules);
|
nixosModules = mapAttrs (_: path: import path) (import ./modules);
|
||||||
overlay = final: prev: {
|
|
||||||
xeals = nixpkgs.lib.composeExtensions self.overlays.pkgs;
|
|
||||||
};
|
|
||||||
overlays = import ./overlays // {
|
overlays = import ./overlays // {
|
||||||
pkgs = final: prev: import ./pkgs/top-level/all-packages.nix { pkgs = prev; };
|
pkgs = final: prev: import ./pkgs/top-level/all-packages.nix { pkgs = prev; };
|
||||||
};
|
};
|
||||||
packages = genAttrs defaultSystems
|
|
||||||
(system:
|
overlay = final: prev: {
|
||||||
let
|
xeals = nixpkgs.lib.composeExtensions self.overlays.pkgs;
|
||||||
pkgs = nixpkgs.legacyPackages.${system};
|
};
|
||||||
xPkgs = import ./pkgs/top-level/all-packages.nix { inherit pkgs; };
|
} // eachDefaultSystem (system:
|
||||||
in
|
let
|
||||||
filterAttrs
|
pkgs = nixpkgs.legacyPackages.${system};
|
||||||
(attr: drv:
|
xPkgs = import ./pkgs/top-level/all-packages.nix { inherit pkgs; };
|
||||||
builtins.elem system drv.meta.platforms or [ ])
|
mkApp = opts: { type = "app"; } // opts;
|
||||||
xPkgs
|
in
|
||||||
);
|
rec {
|
||||||
};
|
packages = filterAttrs
|
||||||
|
(attr: drv: builtins.elem system (drv.meta.platforms or [ ]))
|
||||||
|
(flattenTree xPkgs);
|
||||||
|
|
||||||
|
apps = flattenTree {
|
||||||
|
alacritty = mkApp { program = "${packages.alacritty-ligatures}/bin/alacritty"; };
|
||||||
|
protonmail-bridge = mkApp { program = "${packages.protonmail-bridge}/bin/protonmail-bridge"; };
|
||||||
|
protonmail-bridge-headless = mkApp { program = "${packages.protonmail-bridge}/bin/protonmail-bridge"; };
|
||||||
|
psst = {
|
||||||
|
cli = mkApp { program = "${packages.psst}/bin/psst-cli"; };
|
||||||
|
gui = mkApp { program = "${packages.psst}/bin/psst-gui"; };
|
||||||
|
};
|
||||||
|
spotify-ripper = mkApp { program = "${packages.spotify-ripper}/bin/spotify-ripper"; };
|
||||||
|
};
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user