45 lines
1.1 KiB
Nix
45 lines
1.1 KiB
Nix
{
|
|
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"
|
|
] (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 = "";
|
|
};
|
|
direnv = {
|
|
path = ./direnv;
|
|
description = "An empty devshell with direnv support";
|
|
};
|
|
rust = {
|
|
path = ./rust;
|
|
description = "Rust specific template providing packaging, dev-shell & cross-compilation; based on fenix.";
|
|
};
|
|
};
|
|
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
|
|
};
|
|
}
|