From 9f7a90317bb493cd0a288b9e45a4565b05f42146 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Fri, 25 Jul 2025 10:50:30 +0200 Subject: snapshot: Fr 25. Jul 10:50:30 CEST 2025 --- templates/basic/.envrc | 3 +++ templates/basic/flake.nix | 44 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 47 insertions(+) create mode 100644 templates/basic/.envrc create mode 100644 templates/basic/flake.nix (limited to 'templates/basic') 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 = { }; + }; +} -- cgit