Commit graph

10452 commits

Author SHA1 Message Date
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
Shea Levy
8522db1641
Merge branch 'nix-profile-daemon' 2017-10-16 18:17:51 -04:00
Vincent Ambo
202467e989 refactor: Move packages & wallpapers config into own nix files
My systems are single-user machines and the package configuration can
go in the system-wide package list in full.

This splits out the package list into a separate file and also moves
the systemd units for wallpaper setting into a separate file.
2017-10-16 22:53:49 +02:00
Vincent Ambo
aa5dcbc477 feat: Add Nix build for nixfd
Builds my [nixfd][] tool for searching a cached version of the Nix package
list.

[nixfd]: https://github.com/tazjin/nixfd
2017-10-16 22:34:44 +02:00
Vincent Ambo
0f099705f7 refactor: Use relative path for nixpkgs-mozilla 2017-10-16 21:52:09 +02:00
Vincent Ambo
7d09557096 feat: Add nixpkgs-mozilla overlay
Imports the nixpkgs-mozilla overlay and installs stable Rust from
the same channel as rustup.
2017-10-16 21:48:59 +02:00
Eelco Dolstra
be59f07799 Merge pull request #1601 from shlevy/fetchgit-no-uri-check
fetchgit: Remove incomplete/unneeded isURI check.
2017-10-16 21:22:13 +02:00
Shea Levy
6a037a738a
Pull nix-profile-daemon from 1.11 2017-10-16 14:51:39 -04:00
Vincent Ambo
10d1ad9280 feat: Numix GTK theme!
* Add Numix GTK theme
  ... though it seems like the icon theme is broken.
* use stable exa
2017-10-16 20:40:41 +02:00
Shea Levy
4e58294ae6
fetchgit: Remove incomplete/unneeded isURI check.
This check spuriously fails for e.g. git@github.com:NixOS/nixpkgs.git,
and even for ssh://git@github.com/NixOS/nixpkgs.git, and is made
redundant by the checks git itself will do when fetching the repo. We
instead pass a -- before passing the URI to git to avoid injection.
2017-10-16 14:35:28 -04:00
Vincent Ambo
bbd39eaf16 fix(compton): Set rendering backend to default 'xrender'
The 'glx' backend which NixOS defaults to causes strange screen
redrawing issues with multiple monitors.
2017-10-16 18:12:36 +02:00
Vincent Ambo
9e60dd04b3 feat: Install exa 2017-10-16 18:12:33 +02:00
Abseil Team
6de53819a7 Changes imported from Abseil "staging" branch:
- 432508bf64998983b3c194d5f164872ce3c2e573 Put visibility tags into absl external build files by Jon Cohen <cohenjon@google.com>
  - 25d59d11e7b833fe632cddb5bf4d76075ae6282b Use ABSL_PREDICT_TRUE instead of *FALSE for the range che... by Jon Cohen <cohenjon@google.com>
  - 8d8a5890a55ddd19aac849748441eeb57c684f10 Better detection for MSVC support on std::optional. by Xiaoyi Zhang <zhangxy@google.com>
  - c1b31e4a97939885c3bbc23ecb093e9619e73ad1 Internal cleanup by Gennadiy Rozental <rogeeff@google.com>
  - 4f56ad20c4eeccc6f5fb21ec6c7191233d34a090 Internal change. by Matt Calabrese <calabrese@google.com>
  - d2a02b52c75c295708170f4d17b7ff442c8d6a97 Fixed a minor typo in the SimpleAtob() function comment. by Abseil Team <absl-team@google.com>
  - 5adbff5c23a45278d06de2ef3a29ea51b0d1269e Internal cleanup by Gennadiy Rozental <rogeeff@google.com>

GitOrigin-RevId: 432508bf64998983b3c194d5f164872ce3c2e573
Change-Id: I32ddd151d3350b96a22e8f1830f19b59374953ad
2017-10-16 12:00:04 -04:00
Vincent Ambo
17e6d52cd6 docs(README): Add link to Kotlin library 2017-10-16 17:49:29 +02:00
Vincent Ambo
043c80848d chore: Bump version to 0.1.1 2017-10-16 17:44:54 +02:00
Vincent Ambo
1b7464f9cf refactor(lib): Add some additional documentation
* improve delete() docs
* add docs for send() & receive()
* remove unnecessary clone() calls
2017-10-16 17:43:41 +02:00
Vincent Ambo
b75306e58f chore(lib): Derive Debug traits on Queue, Message 2017-10-16 17:42:38 +02:00
Vincent Ambo
1b79584088 fix(lib): Fix incorrect error message for name validation
The message should have been the exact opposite, duh!
2017-10-16 17:42:03 +02:00
Vincent Ambo
773d6eec9d docs(README): Add Travis-CI & crates.io badges 2017-10-16 13:59:27 +02:00
Vincent Ambo
088f16bd40 feat: Install xfce4-screenshooter 2017-10-16 13:48:12 +02:00
Vincent Ambo
b24b4b54d4 refactor(adho): Replace connman with nix-based wifi config
Now that WPA2 is broken wifi passwords aren't secret anymore,
anyways ;-)
2017-10-16 13:47:10 +02:00