mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 21:50:43 -06:00
start templating
This commit is contained in:
parent
bad91ccc23
commit
614f79f12b
3 changed files with 34 additions and 1 deletions
|
@ -36,6 +36,12 @@ let
|
||||||
);
|
);
|
||||||
|
|
||||||
oizysFlake = {
|
oizysFlake = {
|
||||||
|
templates = {
|
||||||
|
dev = {
|
||||||
|
path = ./templates/dev;
|
||||||
|
description = "a basic dev shell";
|
||||||
|
};
|
||||||
|
};
|
||||||
nixosModules = listToAttrs (findModulesList ../modules);
|
nixosModules = listToAttrs (findModulesList ../modules);
|
||||||
nixosConfigurations = mapAttrs (name: _: mkSystem name) (readDir ../hosts);
|
nixosConfigurations = mapAttrs (name: _: mkSystem name) (readDir ../hosts);
|
||||||
packages = forAllSystems (
|
packages = forAllSystems (
|
||||||
|
|
27
lib/templates/dev/flake.nix
Normal file
27
lib/templates/dev/flake.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
});
|
||||||
|
};
|
||||||
|
}
|
2
todo.md
2
todo.md
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
## oizys
|
## oizys
|
||||||
|
|
||||||
- [ ] write a flake template that includes the systems boilerplate
|
- [x] write a flake template that includes the systems boilerplate
|
||||||
|
|
||||||
## software
|
## software
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue