commit 58ac8149047802ae573165d9dbb778fcf3c87344 Author: imxyy_soope_ Date: Sun Dec 7 16:52:13 2025 +0800 feat: init diff --git a/.envrc b/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/.envrc @@ -0,0 +1 @@ +use flake diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..5eff123 --- /dev/null +++ b/flake.nix @@ -0,0 +1,17 @@ +{ + description = "imxyy_soope's flake templates"; + + outputs = { self }: { + templates = { + shell = { + description = "Basic nix shell"; + path = ./shell; + }; + sub-shell = { + description = "Basic nix shell in a `nix` subdirectory"; + path = ./sub-shell; + }; + }; + defaultTemplate = self.templates.shell; + }; +} diff --git a/shell/.envrc b/shell/.envrc new file mode 100644 index 0000000..3550a30 --- /dev/null +++ b/shell/.envrc @@ -0,0 +1 @@ +use flake diff --git a/shell/flake.nix b/shell/flake.nix new file mode 100644 index 0000000..30473c8 --- /dev/null +++ b/shell/flake.nix @@ -0,0 +1,17 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/release-25.11"; + utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShell = pkgs.mkShell { + buildInputs = with pkgs; [ + ]; + }; + } + ); +} diff --git a/sub-shell/.envrc b/sub-shell/.envrc new file mode 100644 index 0000000..b829245 --- /dev/null +++ b/sub-shell/.envrc @@ -0,0 +1 @@ +use flake path:./nix diff --git a/sub-shell/nix/flake.nix b/sub-shell/nix/flake.nix new file mode 100644 index 0000000..30473c8 --- /dev/null +++ b/sub-shell/nix/flake.nix @@ -0,0 +1,17 @@ +{ + inputs = { + nixpkgs.url = "github:NixOS/nixpkgs/release-25.11"; + utils.url = "github:numtide/flake-utils"; + }; + outputs = { self, nixpkgs, utils }: utils.lib.eachDefaultSystem (system: + let + pkgs = import nixpkgs { inherit system; }; + in + { + devShell = pkgs.mkShell { + buildInputs = with pkgs; [ + ]; + }; + } + ); +}