aboutsummaryrefslogtreecommitdiff
path: root/templates/basic
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-07-25 10:50:30 +0200
committerLinnea Gräf <nea@nea.moe>2025-07-25 10:50:30 +0200
commit9f7a90317bb493cd0a288b9e45a4565b05f42146 (patch)
tree0ad7c4f1234679b33c32d700e7136983f6d40483 /templates/basic
parent07d8e75790af1deb0544a4a36e17569a159f539d (diff)
downloadnix-infra-9f7a90317bb493cd0a288b9e45a4565b05f42146.tar.gz
nix-infra-9f7a90317bb493cd0a288b9e45a4565b05f42146.tar.bz2
nix-infra-9f7a90317bb493cd0a288b9e45a4565b05f42146.zip
snapshot: Fr 25. Jul 10:50:30 CEST 2025
Diffstat (limited to 'templates/basic')
-rw-r--r--templates/basic/.envrc3
-rw-r--r--templates/basic/flake.nix44
2 files changed, 47 insertions, 0 deletions
diff --git a/templates/basic/.envrc b/templates/basic/.envrc
new file mode 100644
index 0000000..b695a8a
--- /dev/null
+++ b/templates/basic/.envrc
@@ -0,0 +1,3 @@
+#!/usr/bin/env bash
+watch_file -- flake-modules/*.nix
+use flake . --show-trace \ No newline at end of file
diff --git a/templates/basic/flake.nix b/templates/basic/flake.nix
new file mode 100644
index 0000000..5d9df6a
--- /dev/null
+++ b/templates/basic/flake.nix
@@ -0,0 +1,44 @@
+{
+ description = "Description for the project";
+
+ inputs = {
+ nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
+
+ flake-parts.url = "github:hercules-ci/flake-parts";
+ flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
+
+ devshell.url = "github:numtide/devshell";
+ devshell.inputs.nixpkgs.follows = "nixpkgs";
+ };
+
+ outputs =
+ inputs@{ flake-parts, ... }:
+ flake-parts.lib.mkFlake { inherit inputs; } {
+ imports = [ inputs.devshell.flakeModule ];
+ systems = [
+ "x86_64-linux"
+ "aarch64-linux"
+ "aarch64-darwin"
+ "x86_64-darwin"
+ ];
+ perSystem =
+ {
+ config,
+ self',
+ inputs',
+ pkgs,
+ system,
+ ...
+ }:
+ {
+ packages = { };
+ formatter = pkgs.nixfmt-tree;
+ devshells.default = {
+ commands = [
+ ];
+ packages = [ ];
+ };
+ };
+ flake = { };
+ };
+}