From 77c7fce1c8ef6dedc1b2986745e937b46104960b Mon Sep 17 00:00:00 2001 From: derped Date: Sat, 4 May 2024 17:40:22 +0200 Subject: [PATCH] Init project flake template. --- .gitignore | 1 + default.nix | 7 +++++++ flake.nix | 17 +++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100644 .gitignore create mode 100644 default.nix create mode 100644 flake.nix diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2be92b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +result diff --git a/default.nix b/default.nix new file mode 100644 index 0000000..27efb44 --- /dev/null +++ b/default.nix @@ -0,0 +1,7 @@ +{ lib, pkgs }: + +{ + # https://github.com/NixOS/rfcs/pull/166 + formatter = pkgs.nixfmt-rfc-style; + packages = { }; +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..3af8c26 --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "A Nix wrapper for Neovim+Lazy"; + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs"; + flake-utils.url = "github:numtide/flake-utils"; + }; + outputs = + { nixpkgs, flake-utils, ... }: + flake-utils.lib.eachDefaultSystem ( + system: + let + pkgs = nixpkgs.legacyPackages."${system}"; + lib = nixpkgs.lib; + in + import ./default.nix { inherit pkgs lib; } + ); +}