refactor: add flake module for pkgs/
This commit is contained in:
parent
c927181aa9
commit
99daa25dee
|
@ -82,7 +82,7 @@ rec {
|
||||||
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
outputs = { self, nixpkgs, nixpkgs-unstable, ... }@inputs:
|
||||||
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
inputs.flake-parts.lib.mkFlake { inherit inputs; } {
|
||||||
systems = [ "x86_64-linux" "aarch64-linux" ];
|
systems = [ "x86_64-linux" "aarch64-linux" ];
|
||||||
imports = [ ./lib ./overlays.nix ];
|
imports = [ ./pkgs/flake-module.nix ./lib ./overlays.nix ];
|
||||||
flake = {
|
flake = {
|
||||||
inherit nixConfig;
|
inherit nixConfig;
|
||||||
|
|
||||||
|
@ -195,13 +195,6 @@ rec {
|
||||||
config.allowUnfree = true;
|
config.allowUnfree = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
packages = import ./pkgs { inherit pkgs; };
|
|
||||||
|
|
||||||
apps = {
|
|
||||||
deconz =
|
|
||||||
inputs.flake-utils.lib.mkApp { drv = config.packages.deconz; };
|
|
||||||
};
|
|
||||||
|
|
||||||
devShells.default =
|
devShells.default =
|
||||||
pkgs.mkShell { inherit (config.checks.pre-commit) shellHook; };
|
pkgs.mkShell { inherit (config.checks.pre-commit) shellHook; };
|
||||||
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
{
|
|
||||||
brlaser = pkgs.callPackage ./brlaser { };
|
|
||||||
deconz = pkgs.qt5.callPackage ./deconz { };
|
|
||||||
}
|
|
12
pkgs/flake-module.nix
Normal file
12
pkgs/flake-module.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
_: {
|
||||||
|
perSystem = { inputs, self', pkgs, ... }: {
|
||||||
|
packages = {
|
||||||
|
brlaser = pkgs.callPackage ./brlaser { };
|
||||||
|
deconz = pkgs.qt5.callPackage ./deconz { };
|
||||||
|
};
|
||||||
|
|
||||||
|
apps = {
|
||||||
|
deconz = inputs.flake-utils.lib.mkApp { drv = self'.packages.deconz; };
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue