+flake template

This commit is contained in:
m3tam3re
2025-02-18 08:50:17 +01:00
commit 8f23618b47
11 changed files with 614 additions and 0 deletions

29
flake.nix Normal file
View File

@@ -0,0 +1,29 @@
{
description = "Self Host Playbook!";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
};
outputs = {nixpkgs, ...}: let
systems = [
"aarch64-linux"
"i686-linux"
"x86_64-linux"
"aarch64-darwin"
"x86_64-darwin"
];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
templates = {
starter = {
description = ''
Description here!
'';
path = ./starter;
};
};
formatter =
forAllSystems (system: nixpkgs.legacyPackages.${system}.alejandra);
};
}