Collection of nix flake templates

Initial Commit

Collection of development environments based on the language im
working with.

yemou.pink 7abb17ad

Changed files
+112
default
erlang
python
+15
default/flake.nix
··· 1 + { 2 + description = "TODO: Describe the flake"; 3 + 4 + inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; 5 + 6 + outputs = 7 + { self, nixpkgs }: 8 + let 9 + systems = [ "x86_64-linux" ]; 10 + forSystems = func: nixpkgs.lib.genAttrs systems (system: func (import nixpkgs { inherit system; })); 11 + in 12 + { 13 + formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; }); 14 + }; 15 + }
+28
erlang/flake.nix
··· 1 + { 2 + description = "TODO: Describe the erlang flake"; 3 + 4 + inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; 5 + 6 + outputs = 7 + { self, nixpkgs }: 8 + let 9 + systems = [ "x86_64-linux" ]; 10 + forSystems = func: nixpkgs.lib.genAttrs systems (system: func (import nixpkgs { inherit system; })); 11 + in 12 + { 13 + formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; }); 14 + 15 + devShells = forSystems (pkgs: { 16 + default = pkgs.mkShellNoCC { 17 + buildInputs = with pkgs; [ 18 + (with beamMinimalPackages; [ 19 + erlang 20 + erlang-ls 21 + erlfmt 22 + rebar3 23 + ]) 24 + ]; 25 + }; 26 + }); 27 + }; 28 + }
+30
flake.nix
··· 1 + { 2 + description = "yemou's nix flake templates"; 3 + 4 + outputs = 5 + { self, nixpkgs }: 6 + let 7 + systems = [ "x86_64-linux" ]; 8 + forSystems = func: nixpkgs.lib.genAttrs systems (system: func (import nixpkgs { inherit system; })); 9 + in 10 + { 11 + formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; }); 12 + 13 + templates = { 14 + default = { 15 + path = ./default; 16 + description = "Generic nix flake"; 17 + }; 18 + erlang = { 19 + path = ./erlang; 20 + description = "Erlang nix flake"; 21 + }; 22 + python = { 23 + path = ./python; 24 + description = "Python nix flake"; 25 + }; 26 + }; 27 + 28 + defaultTemplate = self.templates.default; 29 + }; 30 + }
+12
license
··· 1 + Copyright (C) 2025, yemou <dev@mou.pink> 2 + 3 + Permission to use, copy, modify, and/or distribute this software for any purpose 4 + with or without fee is hereby granted. 5 + 6 + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 7 + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND 8 + FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 9 + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS 10 + OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 11 + TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF 12 + THIS SOFTWARE.
+25
python/flake.nix
··· 1 + { 2 + description = "TODO: Describe the python flake"; 3 + 4 + inputs.nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-unstable"; 5 + 6 + outputs = 7 + { self, nixpkgs }: 8 + let 9 + systems = [ "x86_64-linux" ]; 10 + forSystems = func: nixpkgs.lib.genAttrs systems (system: func (import nixpkgs { inherit system; })); 11 + in 12 + { 13 + formatter = forSystems (pkgs: pkgs.nixfmt-tree.override { settings.formatter.nixfmt.options = [ "-w 120" ]; }); 14 + 15 + devShells = forSystems (pkgs: { 16 + default = pkgs.mkShellNoCC { 17 + buildInputs = with pkgs; [ 18 + (python3.withPackages (pypkgs: with pypkgs; [ ])) 19 + ruff 20 + ty 21 + ]; 22 + }; 23 + }); 24 + }; 25 + }
+2
readme.md
··· 1 + # seed 2 + nix flake templates