Commit graph

10822 commits

Author SHA1 Message Date
Vincent Ambo
d7ae1b70d3 fix(dotfiles): Overwrite default NixOS fish config
NixOS by default adds some fish-config setup that I don't think I
want, but it's a bit unclear what the goal of it is.

I've overwritten it now and things still work fine!
2017-10-21 00:05:49 +02:00
Vincent Ambo
b67fca345a feat(dotfiles): Add alacritty configuration 2017-10-21 00:05:49 +02:00
Vincent Ambo
8cf6fb0360 feat(dotfiles): Add rofi configuration 2017-10-21 00:05:49 +02:00
Vincent Ambo
106ca20940 feat(dotfiles): Add fish-shell & tmux configuration 2017-10-21 00:05:49 +02:00
Vincent Ambo
7fe75e0138 feat(dotfiles): Begin controlling various dotfiles from Nix
Moves my i3 configuration into a nix derivation called 'tazjins-dotfiles'.

A good step towards fully declarative system configuration!
2017-10-21 00:05:49 +02:00
Vincent Ambo
a8a9bf1300 feat(pkgs): Add mq-cli package 2017-10-20 21:47:26 +02:00
Vincent Ambo
30f101e75d feat: Install iftop 2017-10-20 21:47:26 +02:00
Vincent Ambo
19f165484b feat(adho): Configure larger local POSIX queue sizes
Required for some testing at work.
2017-10-20 21:47:26 +02:00
Vincent Ambo
2d80f468d0 fix(pkgs): Use correct IntelliJ IDEA version
I actually have an Ultimate license, so I should probably use that.
2017-10-20 21:47:26 +02:00
Vincent Ambo
8fe1795f16 feat(adho): Enable bluetooth 2017-10-20 21:47:22 +02:00
Vincent Ambo
2c71e092f6 refactor: Compatibility with Rust 1.20
for_each was stabilised in 1.21, but is not yet available in all
distributions.
2017-10-20 21:40:25 +02:00
Vincent Ambo
d742c6526b feat: Add send command
Adds a command that can be used to send simple messages.

In the future this may also accept arguments from stdin to send
non-text messages.
2017-10-20 17:30:45 +02:00
Vincent Ambo
a023e05474 feat: Add receive command
Adds a command to receive a single message from a queue.
2017-10-20 17:30:45 +02:00
Vincent Ambo
232cf36f20 chore(cargo): Bump version to 0.1.2 2017-10-20 17:19:46 +02:00
Vincent Ambo
e22ad15329 fix(error): Module should be public 2017-10-20 17:18:59 +02:00
Vincent Ambo
23ac0eef87 refactor: More sensible CLI structure 2017-10-20 13:17:00 +02:00
Vincent Ambo
79a27f8f0d feat(build): Add Travis-CI configuration 2017-10-20 13:17:00 +02:00
Vincent Ambo
44e72884a6 feat: Add create command
Adds a command to create message queues with custom parameters.
2017-10-20 13:17:00 +02:00
Vincent Ambo
10dcab6365 feat: Add command to list and inspect queues 2017-10-20 13:17:00 +02:00
Vincent Ambo
0e6d521ae0 chore: Add project bootstrap files 2017-10-20 13:11:33 +02:00
Vincent Ambo
d6fb2e41fd chore: Initial commit 2017-10-20 12:06:01 +02:00
Eelco Dolstra
f31c66d392 Merge pull request #1616 from copumpkin/separate-darwin-sandbox
Shift Darwin sandbox to separate installed files
2017-10-20 12:00:27 +02:00
Eelco Dolstra
311b59001a Merge pull request #1622 from kini/c++14-prerequisite
Mention C++14 dependency in the manual.
2017-10-20 11:35:14 +02:00
Stefan Magnus Landrø
68e2f99062 feat templater: Add IP lookup function
This introduces support for looking up IP addresses using local DNS resolver.

Function will return a list of all IP addresses associated with hostname.
Further processing can be achieved using supported list template functions.
2017-10-20 09:43:02 +02:00
Keshav Kini
32940702fc Mention C++14 dependency in the manual.
A couple makefiles in the sources have -std=c++14 in the CFLAGS.
2017-10-19 18:03:26 -07:00
Shea Levy
c7af84ce84
nix-shell: Fix file name resolution in shebangs 2017-10-19 15:02:40 -04:00
Eelco Dolstra
ef1d0142a0
Revert "Let's not populate the NAR cache from hydra-queue-runner for now"
This reverts commit 908590dc6c. Since
hydra-server can have a different store URI from hydra-queue-runner
now, we don't really need this.
2017-10-19 12:11:07 +02:00
Vincent Ambo
9361addb54 feat: Install jq
How could I even forget about this?
2017-10-19 01:48:27 +02:00
Abseil Team
6cf9c73102 Changes imported from Abseil "staging" branch:
- 2620e69367081a44678a4550dff050cf9bef9106 Avoid unused variable warnings. by Abseil Team <absl-team@google.com>

GitOrigin-RevId: 2620e69367081a44678a4550dff050cf9bef9106
Change-Id: I0acf38c122e5bbb0864a8ee851ec72dea6c2cca0
2017-10-18 10:56:40 -04:00
Eelco Dolstra
908590dc6c
Let's not populate the NAR cache from hydra-queue-runner for now 2017-10-18 15:45:39 +02:00
Eelco Dolstra
75cd75b1ae
Errors writing to the NAR cache should not be fatal 2017-10-18 15:41:14 +02:00
Vincent Ambo
0ceef2ac3f feat: Install openssl 2017-10-18 15:33:08 +02:00
Vincent Ambo
6118c611c0 feat(pkgs): Add terraform-bin package
The source build of Terraform is currently broken in NixOS.

This adds a binary package.
2017-10-18 15:16:28 +02:00
Eelco Dolstra
d8306148e0
Suppress "copying 0 paths" message 2017-10-18 15:02:58 +02:00
Dan Peebles
6e5165b773 Shift Darwin sandbox to separate installed files
This makes it slightly more manageable to see at a glance what in a
build's sandbox profile is unique to the build and what is standard. Also
a first step to factoring more of our Darwin logic into scheme functions
that will allow us a bit more flexibility. And of course less of that
nasty codegen in C++! 😀
2017-10-17 19:15:51 -04:00
Vincent Ambo
b2585a0bcf feat: Add myself to the 'docker' group 2017-10-18 00:58:03 +02:00
Abseil Team
d8ac7afc10 Changes imported from Abseil "staging" branch:
- 1434dc58cc24e004531a09bcf1491773d9bf789e Copybara clang-format by Juemin Yang <jueminyang@google.com>
  - 6296f0f69b23d406a275b7ce2669ea3b18149bb7 Internal change for git pull request #31 by Juemin Yang <jueminyang@google.com>
  - 539940d88cfdf172b4b916d44225cc42839eeee7 Add internal-only ABSL_INTERNAL_HAVE_TSAN_INTERFACE macro. by Daniel Katz <katzdm@google.com>
  - bf85dda4ffdb4dd15084fb8b8db00281481dee90 Add missing pthread.h include to low_level_alloc.cc. by Derek Mauro <dmauro@google.com>

GitOrigin-RevId: 1434dc58cc24e004531a09bcf1491773d9bf789e
Change-Id: I68d6957b0cac32020e4e34dca3243f2f270a4b9c
2017-10-17 16:42:15 -04:00
Eelco Dolstra
b24b8ef77c BinaryCacheStore::addToStore(): Add NARs to the local cache 2017-10-17 21:39:48 +02:00
Eelco Dolstra
ca580bec35 BinaryCacheStore: Support local caching of NARs
This speeds up commands like "nix cat-store". For example:

  $ time nix cat-store --store https://cache.nixos.org?local-nar-cache=/tmp/nar-cache /nix/store/i60yncmq6w9dyv37zd2k454g0fkl3arl-systemd-234/etc/udev/udev.conf
  real    0m4.336s

  $ time nix cat-store --store https://cache.nixos.org?local-nar-cache=/tmp/nar-cache /nix/store/i60yncmq6w9dyv37zd2k454g0fkl3arl-systemd-234/etc/udev/udev.conf
  real    0m0.045s

The primary motivation is to allow hydra-server to serve files from S3
binary caches. Previously Hydra had a hack to do "nix-store -r
<path>", but that fetches the entire closure so is prohibitively
expensive.

There is no garbage collection of the NAR cache yet. Also, the entire
NAR is read when accessing a single member file. We could generate the
NAR listing to provide random access.

Note: the NAR cache is indexed by the store path hash, not the content
hash, so NAR caches should not be shared between binary caches, unless
you're sure that all your builds are binary-reproducible.
2017-10-17 21:15:33 +02:00
Eelco Dolstra
11ba4302e3 Remove BinaryCacheStoreAccessor
Probably as a result of a bad merge in
4b8f1b0ec0, we had both a
BinaryCacheStoreAccessor and a
RemoteFSAccessor. BinaryCacheStore::getFSAccessor() returned the
latter, but BinaryCacheStore::addToStore() checked for the
former. This probably caused hydra-queue-runner to download paths that
it just uploaded.
2017-10-17 20:51:42 +02:00
jueminyang
0a86ee86ef Merge pull request #31 from efcs/add-clang-format
Add Google-style .clang-format file.
2017-10-17 14:50:09 -04:00
Shea Levy
cbc216911d
fetchgit: Remove incomplete/unneeded ref check.
This check fails for tags and branches, and is made redundant by the
checks git itself will do when fetching the repo.
2017-10-17 12:30:54 -04:00
Vincent Ambo
0e84a38273 feat: Enable VirtualBox & Docker 2017-10-17 16:18:11 +02:00
Vincent Ambo
ed1b60b588 feat(pkgs): Install nixops 2017-10-17 15:59:08 +02:00
Vincent Ambo
cb33e5222f feat(pkgs): Install custom kontemplate package 2017-10-17 01:27:41 +02:00
Vincent Ambo
73bf498781 feat: Install google-cloud-sdk 2017-10-17 01:18:18 +02:00
Vincent Ambo
b8e419583c fix(desktop): Start feh-wp.timer faster 2017-10-17 00:43:14 +02:00
Vincent Ambo
bcec9f8360 fix(desktop): Bind feh-wp.timer to graphical target 2017-10-17 00:41:51 +02:00
Vincent Ambo
4327d0e0b9 refactor(desktop): Split out desktop configuration
* move desktop configuration to own nix file
* remove old clone-wallpapers service
* use wallpapers nix package for randomly setting wallpaper
2017-10-17 00:34:04 +02:00
Vincent Ambo
296ae9f1fd feat(pkgs): Add 'wallpapers' derivation
Adds a derivation that fetches my wallpapers from git.

I'm getting closer to understanding "the Nix way", i.e. that maybe
thinking about stuff like this in terms of "the wallpapers should be
in my home folder" is incorrect.
2017-10-17 00:28:57 +02:00