mirror of
https://github.com/traxys/Nixfiles.git
synced 2026-05-08 20:05:03 +02:00
Factorize package list
This commit is contained in:
parent
1fd90675e7
commit
27408429b1
1 changed files with 12 additions and 21 deletions
33
flake.nix
33
flake.nix
|
|
@ -49,6 +49,16 @@
|
|||
inherit (inputs) oscclip simulationcraft kabalist;
|
||||
}
|
||||
// (nixpkgs.legacyPackages.x86_64-linux.callPackage ./_sources/generated.nix {});
|
||||
|
||||
pkgList = system: callPackage:
|
||||
(import ./pkgs/default.nix {
|
||||
inherit sources callPackage;
|
||||
naersk = inputs.naersk.lib."${system}";
|
||||
})
|
||||
// {
|
||||
raclette = inputs.raclette.defaultPackage."${system}";
|
||||
neovimTraxys = inputs.nvim-traxys.packages."${system}".nvim;
|
||||
};
|
||||
in {
|
||||
templates = {
|
||||
rust = {
|
||||
|
|
@ -56,17 +66,7 @@
|
|||
description = "My rust template using rust-overlay and direnv";
|
||||
};
|
||||
};
|
||||
packages.x86_64-linux = let
|
||||
pkgs = nixpkgs.legacyPackages.x86_64-linux;
|
||||
in
|
||||
(import ./pkgs/default.nix {
|
||||
inherit sources;
|
||||
callPackage = pkgs.callPackage;
|
||||
naersk = inputs.naersk.lib.x86_64-linux;
|
||||
})
|
||||
// {
|
||||
raclette = inputs.raclette.defaultPackage.x86_64-linux;
|
||||
};
|
||||
packages.x86_64-linux = pkgList "x86_64-linux" nixpkgs.legacyPackages.x86_64-linux.callPackage;
|
||||
nixosConfigurations = {
|
||||
ZeNixLaptop = nixpkgs.lib.nixosSystem rec {
|
||||
system = "x86_64-linux";
|
||||
|
|
@ -78,16 +78,7 @@
|
|||
inputs.nix-alien.overlay
|
||||
inputs.nix-gaming.overlays.default
|
||||
inputs.comma.overlays.default
|
||||
(final: prev:
|
||||
import ./pkgs/default.nix {
|
||||
inherit sources;
|
||||
callPackage = prev.callPackage;
|
||||
naersk = inputs.naersk.lib."${system}";
|
||||
})
|
||||
(final: prev: {
|
||||
raclette = inputs.raclette.defaultPackage."${system}";
|
||||
neovimTraxys = inputs.nvim-traxys.packages."${system}".nvim;
|
||||
})
|
||||
(final: prev: pkgList system prev.callPackage)
|
||||
];
|
||||
})
|
||||
./nixos/configuration.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue