aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraditya <bluenerd@protonmail.com>2023-06-30 23:37:02 +0530
committeraditya <bluenerd@protonmail.com>2023-06-30 23:37:02 +0530
commitb2d7a2c5ec2918733220de393d985a8ed66151ab (patch)
tree7b07a451b64a9d46c869fa424f93a95606944074
parent835588516be3a25a675ba1e01207e3c2172e6f3f (diff)
move flakes to folders
-rw-r--r--.envrc1
-rw-r--r--.gitignore2
-rw-r--r--c/.envrc1
-rw-r--r--c/flake.lock27
-rw-r--r--c/flake.nix (renamed from flake-c.nix)0
-rw-r--r--cpp/.envrc1
-rw-r--r--cpp/flake.lock27
-rw-r--r--cpp/flake.nix (renamed from flake-cpp.nix)0
-rw-r--r--default/.envrc1
-rw-r--r--default/flake.lock25
-rw-r--r--default/flake.nix11
-rw-r--r--flake.nix43
-rw-r--r--hugo/.envrc1
-rw-r--r--hugo/flake.lock27
-rw-r--r--hugo/flake.nix (renamed from flake-hugo.nix)0
-rw-r--r--latex/.envrc1
-rw-r--r--latex/flake.lock61
-rw-r--r--latex/flake.nix (renamed from flake-latex.nix)0
-rw-r--r--python/.envrc1
-rw-r--r--python/flake.lock61
-rw-r--r--python/flake.nix (renamed from flake-python.nix)0
-rw-r--r--rust/flake.nix (renamed from flake-rust.nix)0
22 files changed, 291 insertions, 0 deletions
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/.gitignore b/.gitignore
index a806510..a7246c7 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,5 @@
result
result-*
+.direnv/
+*/.direnv/
diff --git a/c/.envrc b/c/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/c/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/c/flake.lock b/c/flake.lock
new file mode 100644
index 0000000..8f36fd2
--- /dev/null
+++ b/c/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1688143309,
+ "narHash": "sha256-Rlg/jUOYD/jcrM1DQs1vEo6WWLM+Pf1abZRdJkTgZkE=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "2b73d5c230df157acc8498e033a55978586af052",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "master",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake-c.nix b/c/flake.nix
index c4ad911..c4ad911 100644
--- a/flake-c.nix
+++ b/c/flake.nix
diff --git a/cpp/.envrc b/cpp/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/cpp/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/cpp/flake.lock b/cpp/flake.lock
new file mode 100644
index 0000000..8f36fd2
--- /dev/null
+++ b/cpp/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1688143309,
+ "narHash": "sha256-Rlg/jUOYD/jcrM1DQs1vEo6WWLM+Pf1abZRdJkTgZkE=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "2b73d5c230df157acc8498e033a55978586af052",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "master",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake-cpp.nix b/cpp/flake.nix
index 26f4181..26f4181 100644
--- a/flake-cpp.nix
+++ b/cpp/flake.nix
diff --git a/default/.envrc b/default/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/default/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/default/flake.lock b/default/flake.lock
new file mode 100644
index 0000000..699e544
--- /dev/null
+++ b/default/flake.lock
@@ -0,0 +1,25 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1687977148,
+ "narHash": "sha256-gUcXiU2GgjYIc65GOIemdBJZ+lkQxuyIh7OkR9j0gCo=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "60a783e00517fce85c42c8c53fe0ed05ded5b2a4",
+ "type": "github"
+ },
+ "original": {
+ "id": "nixpkgs",
+ "type": "indirect"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/default/flake.nix b/default/flake.nix
new file mode 100644
index 0000000..a96aa14
--- /dev/null
+++ b/default/flake.nix
@@ -0,0 +1,11 @@
+{
+ description = "A very basic flake";
+
+ outputs = { self, nixpkgs }: {
+
+ packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello;
+
+ packages.x86_64-linux.default = self.packages.x86_64-linux.hello;
+
+ };
+}
diff --git a/flake.nix b/flake.nix
new file mode 100644
index 0000000..30b6d72
--- /dev/null
+++ b/flake.nix
@@ -0,0 +1,43 @@
+{
+ description = "A collection of nix flakes";
+
+ outputs = { self }: {
+ templates = {
+ default = {
+ path = ./default;
+ description = "Default flake";
+ };
+ c = {
+ path = ./c;
+ description = "C flake";
+ };
+
+ cpp = {
+ path = ./cpp;
+ description = "C++ flake";
+ };
+
+ hugo = {
+ path = ./hugo;
+ description = "Hugo flake";
+ };
+
+ latex = {
+ path = ./latex;
+ description = "LaTeX flake";
+ };
+
+ python = {
+ path = ./python;
+ description = "Python flake";
+ };
+
+ rust = {
+ path = ./rust;
+ description = "Rust flake";
+ };
+ };
+
+ defaultTemplate = self.templates.defualt;
+ };
+ }
diff --git a/hugo/.envrc b/hugo/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/hugo/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/hugo/flake.lock b/hugo/flake.lock
new file mode 100644
index 0000000..42930f1
--- /dev/null
+++ b/hugo/flake.lock
@@ -0,0 +1,27 @@
+{
+ "nodes": {
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1685566663,
+ "narHash": "sha256-btHN1czJ6rzteeCuE/PNrdssqYD2nIA4w48miQAFloM=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "4ecab3273592f27479a583fb6d975d4aba3486fe",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "23.05",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "nixpkgs": "nixpkgs"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake-hugo.nix b/hugo/flake.nix
index 78f63be..78f63be 100644
--- a/flake-hugo.nix
+++ b/hugo/flake.nix
diff --git a/latex/.envrc b/latex/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/latex/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/latex/flake.lock b/latex/flake.lock
new file mode 100644
index 0000000..b677760
--- /dev/null
+++ b/latex/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1687709756,
+ "narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1687829761,
+ "narHash": "sha256-QRe1Y8SS3M4GeC58F/6ajz6V0ZLUVWX3ZAMgov2N3/g=",
+ "owner": "NixOS",
+ "repo": "nixpkgs",
+ "rev": "9790f3242da2152d5aa1976e3e4b8b414f4dd206",
+ "type": "github"
+ },
+ "original": {
+ "owner": "NixOS",
+ "ref": "nixos-23.05",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake-latex.nix b/latex/flake.nix
index 4b80a77..4b80a77 100644
--- a/flake-latex.nix
+++ b/latex/flake.nix
diff --git a/python/.envrc b/python/.envrc
new file mode 100644
index 0000000..3550a30
--- /dev/null
+++ b/python/.envrc
@@ -0,0 +1 @@
+use flake
diff --git a/python/flake.lock b/python/flake.lock
new file mode 100644
index 0000000..d71adf5
--- /dev/null
+++ b/python/flake.lock
@@ -0,0 +1,61 @@
+{
+ "nodes": {
+ "flake-utils": {
+ "inputs": {
+ "systems": "systems"
+ },
+ "locked": {
+ "lastModified": 1687709756,
+ "narHash": "sha256-Y5wKlQSkgEK2weWdOu4J3riRd+kV/VCgHsqLNTTWQ/0=",
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "rev": "dbabf0ca0c0c4bce6ea5eaf65af5cb694d2082c7",
+ "type": "github"
+ },
+ "original": {
+ "owner": "numtide",
+ "repo": "flake-utils",
+ "type": "github"
+ }
+ },
+ "nixpkgs": {
+ "locked": {
+ "lastModified": 1688049487,
+ "narHash": "sha256-100g4iaKC9MalDjUW9iN6Jl/OocTDtXdeAj7pEGIRh4=",
+ "owner": "nixos",
+ "repo": "nixpkgs",
+ "rev": "4bc72cae107788bf3f24f30db2e2f685c9298dc9",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nixos",
+ "ref": "nixos-unstable",
+ "repo": "nixpkgs",
+ "type": "github"
+ }
+ },
+ "root": {
+ "inputs": {
+ "flake-utils": "flake-utils",
+ "nixpkgs": "nixpkgs"
+ }
+ },
+ "systems": {
+ "locked": {
+ "lastModified": 1681028828,
+ "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
+ "owner": "nix-systems",
+ "repo": "default",
+ "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
+ "type": "github"
+ },
+ "original": {
+ "owner": "nix-systems",
+ "repo": "default",
+ "type": "github"
+ }
+ }
+ },
+ "root": "root",
+ "version": 7
+}
diff --git a/flake-python.nix b/python/flake.nix
index f1c15c5..f1c15c5 100644
--- a/flake-python.nix
+++ b/python/flake.nix
diff --git a/flake-rust.nix b/rust/flake.nix
index f5c98d5..f5c98d5 100644
--- a/flake-rust.nix
+++ b/rust/flake.nix