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 similarity index 100% rename from flake-c.nix rename to 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 similarity index 100% rename from flake-cpp.nix rename to 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 similarity index 100% rename from flake-hugo.nix rename to 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 similarity index 100% rename from flake-latex.nix rename to 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 similarity index 100% rename from flake-python.nix rename to python/flake.nix diff --git a/flake-rust.nix b/rust/flake.nix similarity index 100% rename from flake-rust.nix rename to rust/flake.nix