templates/flake.nix

45 lines
1.1 KiB
Nix
Raw Permalink Normal View History

{
description = "Templates for getting started with Aux";
inputs.nixpkgs.url = "github:auxolotl/nixpkgs/nixpkgs-unstable";
outputs =
{ self, nixpkgs }:
let
forAllSystems =
function:
nixpkgs.lib.genAttrs [
"x86_64-linux"
"aarch64-linux"
"x86_64-darwin"
"aarch64-darwin"
2024-05-01 21:38:50 +00:00
] (system: function nixpkgs.legacyPackages.${system});
in
{
templates = {
default = self.templates.system;
system = {
path = ./system;
description = "";
};
home-manager = {
path = ./home-manager;
description = "";
};
darwin = {
path = ./darwin;
description = "";
};
2024-05-02 08:05:49 +00:00
direnv = {
path = ./direnv;
description = "An empty devshell with direnv support";
};
2024-05-06 20:00:10 +00:00
rust = {
path = ./rust;
description = "Rust specific template providing packaging, dev-shell & cross-compilation; based on fenix.";
};
};
2024-05-01 21:38:50 +00:00
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
}