templates/flake.nix

41 lines
951 B
Nix
Raw Permalink Normal View History

{
description = "Templates for getting started with Aux";
inputs.nixpkgs.url = "github:nixos/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-01 21:38:50 +00:00
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
}