From 972cb1438aecca8fac523cba16d221af41038257 Mon Sep 17 00:00:00 2001 From: bpeetz Date: Sun, 25 Jun 2023 18:26:52 +0200 Subject: chore: Initial Commit --- flake.nix | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 flake.nix (limited to 'flake.nix') diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..73f27c9 --- /dev/null +++ b/flake.nix @@ -0,0 +1,39 @@ +{ + description = "NixOS flake for my website"; + + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/nixos-22.11-small"; + systems.url = "github:nix-systems/x86_64-linux"; + flake-utils = { + url = "github:numtide/flake-utils"; + inputs.systems.follows = "systems"; + }; + }; + + outputs = { + nixpkgs, + flake-utils, + ... + }: + flake-utils.lib.eachDefaultSystem ( + system: let + pkgs = nixpkgs.legacyPackages.${system}; + vscode = import ./vscode.nix {inherit pkgs;}; + in { + devShells = { + default = pkgs.mkShell { + packages = with pkgs; [ + statix + ltex-ls + nil + shellcheck + alejandra + vscode + ]; + }; + }; + } + ); +} +# vim: ts=2 + -- cgit 1.4.1