start templating

This commit is contained in:
Daylin Morgan 2024-11-27 11:22:16 -06:00
parent bad91ccc23
commit 614f79f12b
Signed by: daylin
GPG key ID: 950D13E9719334AD
3 changed files with 34 additions and 1 deletions

View file

@ -36,6 +36,12 @@ let
);
oizysFlake = {
templates = {
dev = {
path = ./templates/dev;
description = "a basic dev shell";
};
};
nixosModules = listToAttrs (findModulesList ../modules);
nixosConfigurations = mapAttrs (name: _: mkSystem name) (readDir ../hosts);
packages = forAllSystems (

View file

@ -0,0 +1,27 @@
{
description = "";
inputs.nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
outputs =
{ nixpkgs, ... }:
let
inherit (nixpkgs.lib) genAttrs;
systems = [
"x86_64-linux"
"x86_64-darwin"
"aarch64-linux"
"aarch64-darwin"
];
forAllSystems = f: genAttrs systems (system: f (import nixpkgs { inherit system; }));
in
{
devShells = forAllSystems (pkgs: {
default = pkgs.mkShell {
packages = with pkgs; [
# insert packages here
];
};
});
};
}

View file

@ -2,7 +2,7 @@
## oizys
- [ ] write a flake template that includes the systems boilerplate
- [x] write a flake template that includes the systems boilerplate
## software