-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
35 lines (29 loc) · 1.07 KB
/
flake.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
description = "Flake templates for creating new projects";
inputs = {
nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-24.05";
};
outputs = { self, nixpkgs, }: {
templates.base = {
path = templates/base-with-flake;
description = "Basic project configs and files with flake";
welcomeText = builtins.readFile templates/base-with-flake/README.md;
};
templates.python-poetry = {
path = templates/python-poetry;
description = "Poetry project config with nix integration";
welcomeText = builtins.readFile templates/python-poetry/README.md;
};
templates.default = self.templates.base;
devShells.x86_64-linux.default = nixpkgs.legacyPackages.x86_64-linux.mkShell {
packages = [
nixpkgs.legacyPackages.x86_64-linux.pre-commit
(nixpkgs.legacyPackages.x86_64-linux.writeShellApplication {
name = "update_templates";
runtimeInputs = with nixpkgs.legacyPackages.x86_64-linux; [ bash coreutils ];
text = builtins.readFile ./common/_update.sh;
})
];
};
};
}