Signed-off-by: Bloxx12 <charlie@charlieroot.dev> Change-Id: I6a6a696436b90e48895139b7e0b59b75c0e64cae
45 lines
971 B
Nix
45 lines
971 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;
|
|
};
|
|
}
|