Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a69641c36f9763e104087a559c148d0449f00
40 lines
918 B
Nix
40 lines
918 B
Nix
{
|
|
description = "My NixOS config flake";
|
|
|
|
# No inputs, take this flakers
|
|
|
|
outputs =
|
|
_:
|
|
let
|
|
sources = import ./npins;
|
|
nixpkgs = (import sources.flake-compat { src = sources.nixpkgs; }).outputs;
|
|
inherit (nixpkgs) lib;
|
|
pkgsFor = nixpkgs.legacyPackages;
|
|
inputs = sources;
|
|
in
|
|
{
|
|
nixosConfigurations = import ./default.nix;
|
|
|
|
packages = lib.mapAttrs (_: pkgs: {
|
|
inherit
|
|
(import ./packages {
|
|
inherit inputs pkgs sources;
|
|
})
|
|
fish
|
|
helix
|
|
kakoune
|
|
nushell
|
|
;
|
|
}) pkgsFor;
|
|
devShells = lib.mapAttrs (_: pkgs: {
|
|
default = pkgs.mkShellNoCC {
|
|
packages = [
|
|
(pkgs.callPackage (sources.npins + "/npins.nix") { })
|
|
];
|
|
env.NPINS_OVERRIDE_nichts = ".";
|
|
};
|
|
}) pkgsFor;
|
|
|
|
templates = import ./templates;
|
|
};
|
|
}
|