nichts/flake.nix

68 lines
1.5 KiB
Nix
Raw Normal View History

2024-04-09 23:11:33 +02:00
{
2024-05-21 23:41:23 +02:00
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;
eachSystem = lib.genAttrs (import sources.systems);
pkgsFor = nixpkgs.legacyPackages;
inputs = sources;
2024-11-01 14:51:13 +01:00
in {
nixosConfigurations = import ./default.nix;
2024-11-01 16:19:42 +01:00
2025-04-16 22:34:25 +02:00
formatter = eachSystem (system: pkgsFor.${system}.alejandra);
2025-03-02 21:17:17 +01:00
2025-04-16 22:34:25 +02:00
packages =
lib.mapAttrs (
2025-07-08 14:22:00 +02:00
_: pkgs: {
2025-04-16 22:34:25 +02:00
inherit
(import ./packages {
inherit inputs pkgs;
2025-04-16 22:34:25 +02:00
})
fish
2025-06-04 08:26:52 +02:00
helix
2025-04-16 22:34:25 +02:00
kakoune
nushell
2025-04-16 22:34:25 +02:00
;
}
)
pkgsFor;
devShells =
lib.mapAttrs (
_: pkgs: {
default = pkgs.mkShellNoCC {
packages = [
(pkgs.callPackage (sources.npins + "/npins.nix") {})
];
env.NPINS_OVERRIDE_nichts = ".";
};
}
)
pkgsFor;
2024-11-02 11:28:08 +01:00
2025-03-02 21:22:19 +01:00
apps = eachSystem (system: let
inherit (inputs.self.packages.${system}) fish helix nushell;
2025-03-02 21:22:19 +01:00
in {
default = inputs.self.apps.${system}.nushell;
2024-11-06 00:11:11 +01:00
helix = {
type = "app";
2025-06-04 08:26:52 +02:00
program = "${helix}/bin/hx";
2024-11-06 00:11:11 +01:00
};
nushell = {
type = "app";
program = "${nushell}/bin/nu";
};
fish = {
type = "app";
program = "${fish}/bin/fish";
};
2025-03-02 21:22:19 +01:00
});
2025-06-05 08:27:20 +02:00
templates = import ./templates;
2024-11-01 14:51:13 +01:00
};
2024-04-09 23:11:33 +02:00
}