From be5e89ed56d55bea6df9980229b5a8a301d14abf Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Fri, 9 Feb 2024 04:10:11 +0300 Subject: [PATCH] Flake : Add blank template. --- .config/linux/flake/template/Blank.nix | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .config/linux/flake/template/Blank.nix diff --git a/.config/linux/flake/template/Blank.nix b/.config/linux/flake/template/Blank.nix new file mode 100644 index 0000000..fb8685d --- /dev/null +++ b/.config/linux/flake/template/Blank.nix @@ -0,0 +1,29 @@ +{ + description = ""; + + inputs = { + nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; + }; + + outputs = { self, nixpkgs } @inputs: + let + system = "x86_64-linux"; + lib = nixpkgs.lib; + pkgs = nixpkgs.legacyPackages.${system}; + in { + devShells.${system} = { + default = pkgs.mkShell { + inputsFrom = with self.devShells.${system}; [ + custom + ]; + }; + + custom = pkgs.mkShell rec { + nativeBuildInputs = with pkgs; [ + ]; + buildInputs = with pkgs; [ + ]; + }; + }; + }; +}