From 60c25e1ae55eef70774ce44615fcf98be246b604 Mon Sep 17 00:00:00 2001 From: Jaculabilis Date: Fri, 11 Feb 2022 23:27:37 -0800 Subject: [PATCH] Initial commit --- README.md | 33 +++++++++++++++++++++++++++++++++ flake.nix | 11 +++++++++++ 2 files changed, 44 insertions(+) create mode 100644 README.md create mode 100644 flake.nix diff --git a/README.md b/README.md new file mode 100644 index 0000000..370b41e --- /dev/null +++ b/README.md @@ -0,0 +1,33 @@ +# 5D Diplomacy With Multiversal Time Travel + +## So you want to conquer Europe with a declarative build system + +Let's start out by initializing the project. I always hate this part of projects; it's much easier to pick up something with an established codebase and ecosystem and figure out how to modify it to be slightly different than it is to strain genius from the empty space of possibility _de novo_. The ultimate goal of this project is summoning military aid from beyond space and time, though, so we're going to have to get used to it. + +A `nix flake init` gives us a fairly useless flake template: + +``` +{ + description = "A very basic flake"; + + outputs = { self, nixpkgs }: { + + packages.x86_64-linux.hello = nixpkgs.legacyPackages.x86_64-linux.hello; + + defaultPackage.x86_64-linux = self.packages.x86_64-linux.hello; + + }; +} +``` + +We're going to replace every line in this file, but at least we got a start. Let's also `git init` and set that part up. + +``` +$ git init +$ git config --add user.name Jaculabilis +$ git config --add user.email jaculabilis@git.alogoulogoi.com +$ git add flake.nix README.md +$ git commit -m "Initial commit" +$ git remote add origin gitea@git.alogoulogoi.com:Jaculabilis/5dplomacy.git +$ git push -u origin master +``` \ No newline at end of file diff --git a/flake.nix b/flake.nix new file mode 100644 index 0000000..94f2327 --- /dev/null +++ b/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; + + defaultPackage.x86_64-linux = self.packages.x86_64-linux.hello; + + }; +}