mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
move packages to separate file
This commit is contained in:
parent
7eb23fbb59
commit
b7bc5157f5
2 changed files with 26 additions and 19 deletions
20
flake.nix
20
flake.nix
|
@ -4,25 +4,7 @@
|
||||||
|
|
||||||
outputs = { self, nixpkgs, impermanence, ... }:
|
outputs = { self, nixpkgs, impermanence, ... }:
|
||||||
let
|
let
|
||||||
mypkgs = pkgs:
|
mypkgs = import ./pkgs self;
|
||||||
{
|
|
||||||
commander-x16 = pkgs.callPackage ./pkgs/commander-x16 { };
|
|
||||||
gef = pkgs.callPackage ./pkgs/gef { };
|
|
||||||
stretchy-spaces = pkgs.callPackage ./pkgs/stretchy-spaces { };
|
|
||||||
webshells = pkgs.callPackage ./pkgs/webshells { };
|
|
||||||
weevely = pkgs.callPackage ./pkgs/weevely { };
|
|
||||||
}
|
|
||||||
//
|
|
||||||
{
|
|
||||||
security-toolbox = pkgs.callPackage ./pkgs/security-toolbox {
|
|
||||||
pkgs = pkgs // self.packages.${pkgs.system};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
// (if pkgs.system != "x86_64-linux" then { } else
|
|
||||||
{
|
|
||||||
binaryninja = pkgs.callPackage ./pkgs/binary-ninja-personal { };
|
|
||||||
packettracer = pkgs.callPackage ./pkgs/packettracer { };
|
|
||||||
});
|
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
nixosModules =
|
nixosModules =
|
||||||
|
|
25
pkgs/default.nix
Normal file
25
pkgs/default.nix
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
self:
|
||||||
|
pkgs:
|
||||||
|
|
||||||
|
let
|
||||||
|
|
||||||
|
allArchs =
|
||||||
|
{
|
||||||
|
commander-x16 = pkgs.callPackage ./commander-x16 { };
|
||||||
|
gef = pkgs.callPackage ./gef { };
|
||||||
|
stretchy-spaces = pkgs.callPackage ./stretchy-spaces { };
|
||||||
|
webshells = pkgs.callPackage ./webshells { };
|
||||||
|
weevely = pkgs.callPackage ./weevely { };
|
||||||
|
security-toolbox = pkgs.callPackage ./security-toolbox {
|
||||||
|
pkgs = pkgs // self.packages.${pkgs.system};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
x64Lin =
|
||||||
|
{
|
||||||
|
binaryninja = pkgs.callPackage ./binary-ninja-personal { };
|
||||||
|
packettracer = pkgs.callPackage ./packettracer { };
|
||||||
|
};
|
||||||
|
|
||||||
|
in
|
||||||
|
allArchs // (if pkgs.system != "x86_64-linux" then { } else x64Lin)
|
Loading…
Reference in a new issue