refactor: move packages to dedicated directory
This commit is contained in:
parent
62ce64e1b7
commit
df6a1c10a3
|
@ -4,8 +4,5 @@
|
||||||
, ... }: with lib; let
|
, ... }: with lib; let
|
||||||
cfg = config.passthrough.gyroflow;
|
cfg = config.passthrough.gyroflow;
|
||||||
in mkIf cfg.enable {
|
in mkIf cfg.enable {
|
||||||
home.packages = with pkgs; [ (pkgs.callPackage ./package {
|
home.packages = with pkgs; [ gyroflow ];
|
||||||
inherit (pkgs.qt6) wrapQtAppsHook qmake
|
|
||||||
qtbase qtsvg qtwayland qtvirtualkeyboard qtdeclarative;
|
|
||||||
}) ];
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
betaflight-configurator
|
betaflight-configurator
|
||||||
inav-configurator
|
inav-configurator
|
||||||
inav-blackbox-tools
|
inav-blackbox-tools
|
||||||
(pkgs.callPackage ./package/blheli32.nix { })
|
blhelisuite32
|
||||||
(pkgs.callPackage ./package/expresslrs.nix { })
|
expresslrs-configurator
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
13
package/default.nix
Normal file
13
package/default.nix
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
{ lib, ... }: {
|
||||||
|
nixpkgs.overlays = [ (final: prev:
|
||||||
|
builtins.listToAttrs (map (pkg: {
|
||||||
|
name = pkg;
|
||||||
|
value = let
|
||||||
|
argsPath = ./${pkg}/args.nix;
|
||||||
|
in final.callPackage ./${pkg}
|
||||||
|
(if (builtins.pathExists argsPath) then
|
||||||
|
(import argsPath final)
|
||||||
|
else { });
|
||||||
|
}) (builtins.attrNames (builtins.readDir ./.)))
|
||||||
|
) ];
|
||||||
|
}
|
4
package/gyroflow/args.nix
Normal file
4
package/gyroflow/args.nix
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
pkgs: {
|
||||||
|
inherit (pkgs.qt6) wrapQtAppsHook qmake
|
||||||
|
qtbase qtsvg qtwayland qtvirtualkeyboard qtdeclarative;
|
||||||
|
}
|
|
@ -7,6 +7,7 @@
|
||||||
../global
|
../global
|
||||||
../home/profile.nix
|
../home/profile.nix
|
||||||
../home/user.nix
|
../home/user.nix
|
||||||
|
../package
|
||||||
./constant.nix
|
./constant.nix
|
||||||
./channel.nix
|
./channel.nix
|
||||||
impermanence.nixosModules.impermanence
|
impermanence.nixosModules.impermanence
|
||||||
|
|
Loading…
Reference in a new issue