Vincent Ambo
bcd7710be5
feat(tools): Introduce pass-compatible wrapper using Cloud KMS
...
Adds a shell script that supports a subset of the 'pass' interface for
compatibility with kontemplate, and wraps kontemplate in a script that
places this version on the PATH.
This makes it possible to use Cloud KMS encrypted secrets with kontemplate.
2019-09-03 16:12:30 +01:00
Vincent Ambo
abd5d7538c
feat(gcp): Create Cloud KMS resources for encrypting secrets
...
The idea here is to use Cloud KMS and a shell script that mimics
'pass' to trick kontemplate into using Cloud KMS to decrypt secrets.
2019-09-03 16:12:30 +01:00
Vincent Ambo
eb43ba75d2
chore(gcp): Remove monorepo repository
...
The repository is now public on Github.
2019-09-03 16:12:30 +01:00
Eelco Dolstra
e07ec8d27e
Support allowSubstitutes attribute in structured attribute derivations
...
Hopefully fixes #3081 (didn't test).
2019-09-03 16:03:49 +02:00
Eelco Dolstra
cec50290bf
gc-auto.sh: Add some more instrumentation
2019-09-03 15:45:32 +02:00
Eelco Dolstra
f186000367
Add some noexcepts
...
This is to assert that callback functions should never throw (since
the context in which they're called may not be able to handle the
exception).
2019-09-03 13:45:35 +02:00
Eelco Dolstra
7348653ff4
Ensure that Callback is called only once
...
Also, make Callback movable but uncopyable.
2019-09-03 13:45:35 +02:00
Eelco Dolstra
8c4ea7a451
Downloader: Remove a possible double call to Callback
2019-09-03 13:45:32 +02:00
Eelco Dolstra
918717f3b5
Merge pull request #3066 from matthewbauer/wait4path
...
Use wait4path on org.nixos.nix-daemon.plist
2019-09-03 12:10:32 +02:00
Vincent Ambo
be28462a8a
Merge pull request #4 from tazjin/fix/blog-substitutes
...
fix(tazblog): Explicitly allow substitutes for the blog
2019-09-03 01:11:55 +01:00
Vincent Ambo
0d93594347
fix(tazblog): Explicitly allow substitutes for the blog
...
Not entirely sure which part of the setup set this to 'false', but
this is potentially the key for why tazblog ends up being rebuilt all
the time.
2019-09-03 00:43:49 +01:00
Vincent Ambo
5e4157e4a2
chore(k8s): Update deployed Nixery version
2019-09-03 00:31:09 +01:00
Vincent Ambo
d9a0f07c73
chore(third_party): Bump Nixery version
2019-09-03 00:25:40 +01:00
Vincent Ambo
496a4ab847
docs: Add information about NIX_TIMEOUT variable
2019-09-02 23:44:57 +01:00
Vincent Ambo
32b9b5099e
feat(server): Add configuration option for Nix build timeouts
...
Adds a NIX_TIMEOUT environment variable which can be set to a number
of seconds that is the maximum allowed time each Nix builder can run.
By default this is set to 60 seconds, which should be plenty for most
use-cases as Nixery is not expected to be performing builds of
uncached binaries in most production cases.
Currently the errors Nix throws on a build timeout are not separated
from other types of errors, meaning that users will see a generic 500
server error in case of a timeout.
This fixes #47
2019-09-02 23:44:57 +01:00
Matthew Bauer
87c604c1f0
Fix launchd program args
...
launchd has some weird syntx. Apparently the program needs to be in
the ProgramArguments, as Program appears to be ignored.
2019-09-02 18:35:10 -04:00
Vincent Ambo
3a4d8544fe
Merge pull request #3 from tazjin/chore/pin-travis-nix
...
Pin Nix version in Travis builds
2019-09-02 22:54:58 +01:00
Vincent Ambo
cfeb6e57c7
chore(tazblog): Clean up unneeded files
2019-09-02 22:34:06 +01:00
Vincent Ambo
68d14b6cfc
chore(gemma): Delete old image build configuration
2019-09-02 22:06:55 +01:00
Vincent Ambo
8ae6cb2b95
chore: Pin Nix version in Travis builds
...
There are some unexpected cache misses in the Travis builds and I
suspect this might be due to mismatching Nix versions.
2019-09-02 21:58:39 +01:00
Vincent Ambo
d577629b5b
fix(k8s): Add nginx route for load-balancer health checks
2019-09-02 20:16:49 +01:00
Vincent Ambo
f2e0f3ee27
chore(third_party): Remove git-appraise
...
Not actually in use here ...
2019-09-02 20:01:25 +01:00
Griffin Smith
73a52e531d
Put a test gormlak on the screen
...
Implement a concrete "Creature" entity, and place one on the screen at
the game startup for testing.
This revealed a bug with drawing when getting the maximum entity
position, but that appears to be fixed now (yay)
2019-09-02 14:45:36 -04:00
Vincent Ambo
2f239426aa
Merge pull request #2 from tazjin/refactor/nixos-nginx-cleanup
...
Remove old NixOS config and move oslo.pub
2019-09-02 19:04:28 +01:00
Griffin Smith
4d270712ae
Add raws, loaded statically from a folder
...
Add raw types with support for both creatures and items, loaded
statically from a "raws" folder just like in the Rust version.
2019-09-02 13:59:28 -04:00
Vincent Ambo
e2feae3387
fix(k8s): nginx does not need to be pinned to gitHEAD
2019-09-02 18:42:18 +01:00
Vincent Ambo
07a17501cc
chore(k8s): Point Nixery at public depot URL
2019-09-02 18:38:24 +01:00
Vincent Ambo
a0089892dd
feat(k8s): Route oslo.pub to nginx in ingress
2019-09-02 18:28:39 +01:00
Vincent Ambo
785a5a2997
feat(k8s): Add nginx instance for oslo.pub redirect
...
The redirect is currently all that this instance does. It is required
because HTTP load balancers in GCP don't support URL rewriting.
2019-09-02 18:19:35 +01:00
Vincent Ambo
e6cb12ebfb
chore(k8s): Provision certificate for oslo.pub
2019-09-02 18:19:06 +01:00
Vincent Ambo
640b497950
feat(tools): Add stern, a k8s log watcher
2019-09-02 18:18:28 +01:00
Vincent Ambo
4881a84eaa
chore(infra): Remove NixOS configuration for servers
...
This configuration is no longer in use. The Gemma configuration file
has been moved over to the k8s folder from where it will be templated
into the actual configuration.
2019-09-02 17:19:07 +01:00
Vincent Ambo
4bd6d52800
Merge pull request #1 from tazjin/feat/travis-ci
...
Add Travis CI configuration
2019-09-02 17:17:22 +01:00
Vincent Ambo
86d8c748a7
chore: Catch all Nix results in gitignore
2019-09-02 17:12:06 +01:00
Vincent Ambo
4d94254642
docs: Add crude top-level README
2019-09-02 17:12:06 +01:00
Vincent Ambo
99ee84b477
refactor(blog): Use callPackage to import derivation
2019-09-02 16:53:54 +01:00
Vincent Ambo
6472b2645c
feat: Add Travis CI configuration
...
Adds a configuration that builds all of my own services and pushes the
resulting closures to Cachix.
2019-09-02 16:38:59 +01:00
Vincent Ambo
5e9b91a6d2
chore: Remove leftover Bazel files
2019-09-02 16:24:21 +01:00
Griffin Smith
243104c410
Add commands for diagonal movement
...
That Was Easy (tm)!
2019-09-02 10:54:52 -04:00
Griffin Smith
18551cdf30
Add a previous message command
...
Add a "previous message" command, triggered via ctrl+p.
I attempted here to get the message area to still take up a row of space
post-hiding the message, but failed - should revisit that at some point
2019-09-02 10:52:03 -04:00
Griffin Smith
adb3b74c0c
Link up messages to the overall game
...
Add a "say" function for saying messages within an app monad to the
user, and link everything up to display them and track their history
2019-09-02 10:52:01 -04:00
Vincent Ambo
4411eea11f
fix(gemma): Fix build process in Nix
2019-09-02 02:14:39 +01:00
Vincent Ambo
b43e5529f7
feat(third_party): Add missing Quicklisp packages for Gemma
...
Gemma depends on cl-prevalence, which isn't in the nixpkgs Quicklisp
snapshot.
This adds the package and its dependencies to the overlay.
2019-09-02 01:24:41 +01:00
Vincent Ambo
a635beabfa
fix: Correct naming of variables in overlay function
2019-09-02 01:24:23 +01:00
Vincent Ambo
ce8635833b
refactor(build-image): Remove implicit import of entire package set
...
Explicitly refer to where things come from, and also don't import
dockerTools as it is no longer used for anything.
2019-09-02 00:08:11 +01:00
Vincent Ambo
92270fcbe4
refactor(build-image): Simplify customisation layer builder
...
Moves the relevant parts of the customisation layer construction from
dockerTools.mkCustomisationLayer into the Nixery code base.
The version in dockerTools builds additional files (including via
hashing of potentially large files) which are not required when
serving an image over the registry protocol.
2019-09-02 00:08:11 +01:00
Carlos O'Ryan
03c3da1e78
bug: do not redefine targets in config file.
2019-09-01 16:42:33 -04:00
Griffin Smith
2fd3e4c9ad
Implement messages
...
Implement messages almost the same as in the Rust version, only with
YAML instead of TOML this time, and a regular old mustache template
instead of something handrolled. Besides that, pretty much everything
here is the same.
2019-09-01 13:54:27 -04:00
Carlos O'Ryan
1f68a41e38
bug: do not redefine targets in config file.
...
If the config file is included twice (via `find_dependency()` or
`find_package()`) some of the targets could get redefined, breaking the
configuration.
2019-09-01 09:40:27 -04:00
Griffin Smith
4ef19aa35a
Add entities, and allow walking around
...
Add support for entities via a port of the EntityMap type, and implement
command support starting at basic hjkl.
2019-08-31 13:18:51 -04:00