commit 6d09d020623d07fcc4ee7bb88c68cd2a1447ce2a Author: janabhumi Date: Wed Aug 31 23:20:14 2022 +0300 add base flake template diff --git a/base-flake/.envrc b/base-flake/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/base-flake/.envrc @@ -0,0 +1 @@ +use flake diff --git a/base-flake/flake.nix b/base-flake/flake.nix new file mode 100644 index 0000000..3d9922a --- /dev/null +++ b/base-flake/flake.nix @@ -0,0 +1,16 @@ +{ + inputs = { + nixpkgs.url = github:NixOS/nixpkgs/nixpkgs-unstable; + utils.url = github:numtide/flake-utils; + }; + + outputs = { self, nixpkgs, utils }: + utils.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShells.default = { }; + }); + +} diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..b1cfc89 --- /dev/null +++ b/flake.nix @@ -0,0 +1,11 @@ +{ + description = "My personal templates"; + + outputs = { self }: { + templates = { + path = ./base-flake; + description = "An empty flake for each default system"; + }; + defaultTemplate = self.templates.base-flake; + }; +}