Compare commits
No commits in common. "2d11922807aeae4fc487ffe1b8e62d8a5b1fe845" and "8bd8400fea5018e01cce3906c23426ef7ec91f44" have entirely different histories.
2d11922807
...
8bd8400fea
20 changed files with 1 additions and 317 deletions
|
|
@ -1 +0,0 @@
|
||||||
flake-profile-1-link
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
/nix/store/yhc48v456plfcphg7x5s13lnlkrg5vnc-nix-shell-env
|
|
||||||
5
.envrc
5
.envrc
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
watch_file flake.nix flake.lock devshell.nix
|
|
||||||
use flake
|
|
||||||
source_env_if_exists .envrc.local
|
|
||||||
6
.gitignore
vendored
6
.gitignore
vendored
|
|
@ -1,6 +0,0 @@
|
||||||
# direnv
|
|
||||||
.direnv/
|
|
||||||
|
|
||||||
# nix
|
|
||||||
result
|
|
||||||
result-*
|
|
||||||
13
README.md
13
README.md
|
|
@ -1,13 +1,2 @@
|
||||||
# Project Templates
|
# templates
|
||||||
|
|
||||||
This repo contains some project, that I use quite often.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
> Default nix flake
|
|
||||||
>
|
|
||||||
> `nix flake init -t github:cato-001/templates`
|
|
||||||
|
|
||||||
> Golang nix flake
|
|
||||||
>
|
|
||||||
> `nix flake init -t github:cato-001/templates#golang`
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
{ pkgs }:
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
|
||||||
packages = [ ];
|
|
||||||
}
|
|
||||||
64
flake.lock
generated
64
flake.lock
generated
|
|
@ -1,64 +0,0 @@
|
||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"blueprint": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1763308703,
|
|
||||||
"narHash": "sha256-O9Y+Wer8wOh+N+4kcCK5p/VLrXyX+ktk0/s3HdZvJzk=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "blueprint",
|
|
||||||
"rev": "5a9bba070f801d63e2af3c9ef00b86b212429f4f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "blueprint",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767047869,
|
|
||||||
"narHash": "sha256-tzYsEzXEVa7op1LTnrLSiPGrcCY6948iD0EcNLWcmzo=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "89dbf01df72eb5ebe3b24a86334b12c27d68016a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-25.11",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"blueprint": "blueprint",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
14
flake.nix
14
flake.nix
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
description = "My common project templates";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-25.11";
|
|
||||||
|
|
||||||
blueprint = {
|
|
||||||
url = "github:numtide/blueprint";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = inputs: inputs.blueprint { inherit inputs; };
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
watch_file flake.nix flake.lock devshell.nix
|
|
||||||
use flake
|
|
||||||
source_env_if_exists .envrc.local
|
|
||||||
6
templates/default/.gitignore
vendored
6
templates/default/.gitignore
vendored
|
|
@ -1,6 +0,0 @@
|
||||||
# direnv
|
|
||||||
.direnv/
|
|
||||||
|
|
||||||
# nix
|
|
||||||
result
|
|
||||||
result-*
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
{ pkgs }:
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
|
||||||
packages = [ ];
|
|
||||||
|
|
||||||
env = { };
|
|
||||||
}
|
|
||||||
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
description = "TODO: please replace";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-25.11";
|
|
||||||
|
|
||||||
blueprint = {
|
|
||||||
url = "github:numtide/blueprint";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = inputs: inputs.blueprint { inherit inputs; };
|
|
||||||
}
|
|
||||||
|
|
@ -1,5 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
watch_file flake.nix flake.lock devshell.nix
|
|
||||||
use flake
|
|
||||||
source_env_if_exists .envrc.local
|
|
||||||
6
templates/golang/.gitignore
vendored
6
templates/golang/.gitignore
vendored
|
|
@ -1,6 +0,0 @@
|
||||||
# direnv
|
|
||||||
.direnv/
|
|
||||||
|
|
||||||
# nix
|
|
||||||
result
|
|
||||||
result-*
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
||||||
{ pkgs, perSystem, ... }:
|
|
||||||
|
|
||||||
pkgs.mkShell {
|
|
||||||
packages = [
|
|
||||||
pkgs.go
|
|
||||||
perSystem.gomod2nix.default
|
|
||||||
];
|
|
||||||
|
|
||||||
env = { };
|
|
||||||
}
|
|
||||||
119
templates/golang/flake.lock
generated
119
templates/golang/flake.lock
generated
|
|
@ -1,119 +0,0 @@
|
||||||
{
|
|
||||||
"nodes": {
|
|
||||||
"blueprint": {
|
|
||||||
"inputs": {
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
],
|
|
||||||
"systems": "systems"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1763308703,
|
|
||||||
"narHash": "sha256-O9Y+Wer8wOh+N+4kcCK5p/VLrXyX+ktk0/s3HdZvJzk=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "blueprint",
|
|
||||||
"rev": "5a9bba070f801d63e2af3c9ef00b86b212429f4f",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "blueprint",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"flake-utils": {
|
|
||||||
"inputs": {
|
|
||||||
"systems": "systems_2"
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1731533236,
|
|
||||||
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "numtide",
|
|
||||||
"repo": "flake-utils",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"gomod2nix": {
|
|
||||||
"inputs": {
|
|
||||||
"flake-utils": "flake-utils",
|
|
||||||
"nixpkgs": [
|
|
||||||
"nixpkgs"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767019875,
|
|
||||||
"narHash": "sha256-NodN+lhWTD59b44Q2bPjE1edINfjfRkQYdZsrxifCeU=",
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "gomod2nix",
|
|
||||||
"rev": "49662a44272806ff785df2990a420edaaca15db4",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-community",
|
|
||||||
"repo": "gomod2nix",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"nixpkgs": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1767047869,
|
|
||||||
"narHash": "sha256-tzYsEzXEVa7op1LTnrLSiPGrcCY6948iD0EcNLWcmzo=",
|
|
||||||
"owner": "NixOS",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"rev": "89dbf01df72eb5ebe3b24a86334b12c27d68016a",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "NixOS",
|
|
||||||
"ref": "nixos-25.11",
|
|
||||||
"repo": "nixpkgs",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": {
|
|
||||||
"inputs": {
|
|
||||||
"blueprint": "blueprint",
|
|
||||||
"gomod2nix": "gomod2nix",
|
|
||||||
"nixpkgs": "nixpkgs"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"systems_2": {
|
|
||||||
"locked": {
|
|
||||||
"lastModified": 1681028828,
|
|
||||||
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
|
|
||||||
"type": "github"
|
|
||||||
},
|
|
||||||
"original": {
|
|
||||||
"owner": "nix-systems",
|
|
||||||
"repo": "default",
|
|
||||||
"type": "github"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"root": "root",
|
|
||||||
"version": 7
|
|
||||||
}
|
|
||||||
|
|
@ -1,22 +0,0 @@
|
||||||
{
|
|
||||||
description = "TODO: please replace";
|
|
||||||
|
|
||||||
inputs = {
|
|
||||||
nixpkgs.url = "github:NixOS/nixpkgs?ref=nixos-25.11";
|
|
||||||
|
|
||||||
blueprint = {
|
|
||||||
url = "github:numtide/blueprint";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
|
|
||||||
gomod2nix = {
|
|
||||||
url = "github:nix-community/gomod2nix";
|
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
outputs = inputs: inputs.blueprint {
|
|
||||||
inherit inputs;
|
|
||||||
nixpkgs.overlays = [ inputs.gomod2nix.overlays.default ];
|
|
||||||
};
|
|
||||||
}
|
|
||||||
|
|
@ -1,8 +0,0 @@
|
||||||
{ pkgs, ... }:
|
|
||||||
|
|
||||||
pkgs.buildGoApplication {
|
|
||||||
pname = "";
|
|
||||||
version = "0.0.1";
|
|
||||||
src = ./src;
|
|
||||||
modules = ./src/gomod2nix.toml;
|
|
||||||
}
|
|
||||||
|
|
@ -1,7 +0,0 @@
|
||||||
package main
|
|
||||||
|
|
||||||
import "fmt"
|
|
||||||
|
|
||||||
func main() {
|
|
||||||
fmt.Println("Hello!")
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue