Commit Graph
175090 Commits
Author SHA1 Message Date
Ryan Mulligan 4b6a41a939 Merge pull request #57077 from callahad/brother-dsseries
dsseries: init at 1.0.5-1
2019-03-14 21:17:31 -07:00
Aaron Janse 0258cff887 nixos/manual: reword note in declarative packages section 2019-03-14 21:11:27 -07:00
Ryan Mulligan e59fe20847 Merge pull request #57116 from marsam/init-lsd
lsd: init at 0.13.0
2019-03-14 21:08:13 -07:00
aszlig ef553788d0 postgresql: Move socket dir to /run/postgresql
The default, which is /tmp, has a few issues associated with it:

One being that it makes it easy for users on the system to spoof a
PostgreSQL server if it's not running, causing applications to connect
to their provided sockets instead of just failing to connect.

Another one is that it makes sandboxing of PostgreSQL and other services
unnecessarily difficult. This is already the case if only PrivateTmp is
used in a systemd service, so in order for such a service to be able to
connect to PostgreSQL, a bind mount needs to be done from /tmp to some
other path, so the service can access it. This pretty much defeats the
whole purpose of PrivateTmp.

We regularily run into issues with this in the past already (one example
would be https://github.com/NixOS/nixpkgs/pull/24317) and with the new
systemd-confinement mode upcoming in
https://github.com/NixOS/nixpkgs/pull/57519, it makes it even more
tedious to sandbox services.

I've tested this change against all the postgresql NixOS VM tests and
they still succeed and I also grepped through the source tree to replace
other occasions where we might have /tmp hardcoded. Luckily there were
very few occasions.

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @ocharles, @thoughtpolice, @danbst
2019-03-15 04:52:35 +01:00
Ryan Mulligan 795bb9edae Merge pull request #57046 from nyanloutre/jellyfin
jellyfin: init at 10.2.2
2019-03-14 20:36:35 -07:00
Dmitry Kalinkin d41fe18ea5 Merge pull request #57530 from artemist/factorio
factorio: experimental 0.17.6 → 0.17.12
2019-03-14 23:32:41 -04:00
aszlig d13ad389b4 nixos/confinement: Explicitly set serviceConfig
My implementation was relying on PrivateDevices, PrivateTmp,
PrivateUsers and others to be false by default if chroot-only mode is
used.

However there is an ongoing effort[1] to change these defaults, which
then will actually increase the attack surface in chroot-only mode,
because it is expected that there is no /dev, /sys or /proc.

If for example PrivateDevices is enabled by default, there suddenly will
be a mounted /dev in the chroot and we wouldn't detect it.

Fortunately, our tests cover that, but I'm preparing for this anyway so
that we have a smoother transition without the need to fix our
implementation again.

Thanks to @Infinisil for the heads-up.

[1]: https://github.com/NixOS/nixpkgs/issues/14645

Signed-off-by: aszlig <aszlig@nix.build>
2019-03-15 04:13:01 +01:00
Ryan Mulligan 943239b387 Merge pull request #57657 from iblech/patch-kfind
kfind: init at 18.12.1
2019-03-14 20:01:04 -07:00
Ryan Mulligan a2028529f3 Merge pull request #57676 from delroth/tpm2-tools-3.1.4
tpm2-tools: 3.1.3 -> 3.1.4
2019-03-14 19:04:26 -07:00
Maximilian Bosch bc34c15a56 Merge pull request #57345 from r-ryantm/auto-update/offlineimap
offlineimap: 7.2.2 -> 7.2.3
2019-03-15 02:50:53 +01:00
Pierre Bourdon abe667ce06 tpm2-tools: 3.1.3 -> 3.1.4 2019-03-15 01:34:24 +01:00
Silvan Mosberger fb879ae920 Merge pull request #57174 from worldofpeace/pantheon/cleanup
nixos/pantheon cleanup
2019-03-15 01:26:49 +01:00
Ryan Mulligan 2e76e35df6 Merge pull request #53422 from leenaars/bang
pythonPackages.dockerfile-parse: init at 0.0.13
2019-03-14 15:48:42 -07:00
Ryan Mulligan 2151df528b Merge pull request #57672 from eadwu/glava/1.6.3
glava: 1.6.0 -> 1.6.3
2019-03-14 15:43:46 -07:00
Silvan Mosberger aa5df94660 Merge pull request #56765 from RubenAstudillo/stepmania-5.1
stepmania: 5.0.12 -> 5.1.0-b2
2019-03-14 23:38:20 +01:00
Edmund Wu 9d9203140c glava: 1.6.0 -> 1.6.3 2019-03-14 18:22:04 -04:00
Wael Nasreddine a0e4f44006 Merge pull request #57080 from kalbasit/nixpkgs_create-build-go-module
buildGoModule: building Go binaries in two phases
2019-03-14 15:12:51 -07:00
Artemis Tosini 580e29fcd7 factorio: experimental 0.17.11 → 0.17.12 2019-03-14 22:03:46 +00:00
Jos van Bakel 2c4e220e71 pythonPackages.pyrr: 0.10.1 -> 0.10.2 (#57661) 2019-03-14 22:19:48 +01:00
talyz 3f1fdb8bf5 gitAndTools.gitRemoteGcrypt: Add missing dependencies (#57637)
Add the runtime dependencies coreutils, gawk, gnused and gnugrep.
2019-03-14 22:16:40 +01:00
Stephen fb81978ed3 altcoins.freicoin: fix build (#57647) 2019-03-14 22:11:58 +01:00
Michael Raskin 6553ae0fff Merge pull request #57640 from oxij/tree/typos
treewide: fix some typos
2019-03-14 21:08:33 +00:00
Dmitry Kalinkin 0b3975038f Merge pull request #56990 from status-im/nsis
nsis: init at 3.04
2019-03-14 16:57:01 -04:00
Michael Weiss 02fb221307 androidStudioPackages.beta: 3.4.0.15 -> 3.4.0.16 2019-03-14 21:44:15 +01:00
Edmund Wu 143cf54f81 linux_testing_bcachefs: 4.20.2019.02.20 -> 4.20.2019.03.13 2019-03-14 16:25:49 -04:00
Edmund Wu f1844ac441 bcachefs-tools: 2019-02-09 -> 2019-03-13 2019-03-14 16:25:23 -04:00
Will Dietz f22aa01c7b Merge pull request #57607 from dtzWill/update/lab-0.15.2
gitAndTools.lab: 0.14.0 -> 0.15.2
2019-03-14 15:01:10 -05:00
Meghea Iulian 4f74e248c5 avocode: 3.6.2 -> 3.6.12 (#57658) 2019-03-14 20:52:28 +01:00
Pedro Pombeiro ab9f31114b nsis: use sourceforge mirrors 2019-03-14 20:32:53 +01:00
Dmitry Kalinkin d5f97ae600 Merge pull request #57650 from stephengroat/patch-4
apmplanner2: fix build
2019-03-14 15:28:57 -04:00
Silvan Mosberger fc48a70f7b Merge pull request #57497 from r-ryantm/auto-update/urh
urh: 2.5.5 -> 2.5.6
2019-03-14 20:23:58 +01:00
Will Dietz 3e7e61f334 Merge pull request #57543 from dtzWill/update/llvm8-rc5
llvmPackages_8: rc2 -> rc5
2019-03-14 14:19:51 -05:00
Will Dietz bf20713a63 Merge pull request #57606 from dtzWill/feature/vttest
vttest: init at 20190105
2019-03-14 14:19:30 -05:00
Will Dietz 4c024d6368 Merge pull request #57349 from dtzWill/update/libcmis-0.5.2
libcmis: 0.5.0 -> 0.5.2, new home, fix and enable tests + man
2019-03-14 14:17:59 -05:00
xeji 65bba7cbdf Merge pull request #57454 from alyssais/linux-libre
linux_latest-libre: fix build
2019-03-14 20:08:23 +01:00
aszlig 9e9af4f9c0 nixos/confinement: Allow to include the full unit
From @edolstra at [1]:

  BTW we probably should take the closure of the whole unit rather than
  just the exec commands, to handle things like Environment variables.

With this commit, there is now a "fullUnit" option, which can be enabled
to include the full closure of the service unit into the chroot.

However, I did not enable this by default, because I do disagree here
and *especially* things like environment variables or environment files
shouldn't be in the closure of the chroot.

For example if you have something like:

  { pkgs, ... }:

  {
    systemd.services.foobar = {
      serviceConfig.EnvironmentFile = ${pkgs.writeText "secrets" ''
        user=admin
        password=abcdefg
      '';
    };
  }

We really do not want the *file* to end up in the chroot, but rather
just the environment variables to be exported.

Another thing is that this makes it less predictable what actually will
end up in the chroot, because we have a "globalEnvironment" option that
will get merged in as well, so users adding stuff to that option will
also make it available in confined units.

I also added a big fat warning about that in the description of the
fullUnit option.

[1]: https://github.com/NixOS/nixpkgs/pull/57519#issuecomment-472855704

Signed-off-by: aszlig <aszlig@nix.build>
2019-03-14 20:04:33 +01:00
Silvan Mosberger 5cc7ce99b8 Merge pull request #57553 from Kiwi/vim-plugins-fix
vim-plugins: typo propogatedBuildInputs -> propagatedBuildInputs
2019-03-14 20:00:02 +01:00
xeji f2e55341af Merge pull request #57648 from vdemeester/update-kail
kail: 0.7.0 -> 0.8.0
2019-03-14 19:59:42 +01:00
xeji ef1cdfb9a7 Merge pull request #57646 from vdemeester/update-containerd
containerd: 1.2.4 -> 1.2.5
2019-03-14 19:55:12 +01:00
Silvan Mosberger 28a2bc88f4 Merge pull request #56465 from smaximov/overmind-2.0.1
overmind: 1.2.1 -> 2.0.1
2019-03-14 19:54:51 +01:00
Vladimír Čunát 04066403ae Merge branch 'master' into staging-next
Lots of rebuilds from master, apparently.
Hydra nixpkgs: ?compare=1509577
2019-03-14 19:54:49 +01:00
Alex Branham 8dcba2b842 R: update CRAN and Bioconductor package sets
Closes https://github.com/NixOS/nixpkgs/pull/57423.
2019-03-14 19:50:37 +01:00
Alex Branham 1e354a7e40 R: 3.5.2 -> 3.5.3
Closes https://github.com/NixOS/nixpkgs/pull/57400.
2019-03-14 19:50:37 +01:00
Silvan Mosberger 2dd638e877 Merge pull request #56426 from catern/xmonad
xmonad-with-packages: add xmonad-contrib to packages by default
2019-03-14 19:50:00 +01:00
Meghea Iulian e6069617cb gitkraken: 4.2.2 -> 5.0.1 (#57655)
gitkraken: 4.2.2 -> 5.0.1
2019-03-14 19:45:37 +01:00
Dmitry Kalinkin 9034847242 Merge pull request #57493 from marius851000/openmw
openmw: 0.43 -> 0.44
2019-03-14 14:34:54 -04:00
Ingo Blechschmidt 1703627f88 kfind: init at 18.12.1 2019-03-14 19:23:46 +01:00
Stephen 08e4d7cf69 apmplanner2: fix build
see ArduPilot/apm_planner#1166
2019-03-14 11:23:20 -07:00
aszlig 46f7dd436f nixos/confinement: Allow to configure /bin/sh
Another thing requested by @edolstra in [1]:

  We should not provide a different /bin/sh in the chroot, that's just
  asking for confusion and random shell script breakage. It should be
  the same shell (i.e. bash) as in a regular environment.

While I personally would even go as far to even have a very restricted
shell that is not even a shell and basically *only* allows "/bin/sh -c"
with only *very* minimal parsing of shell syntax, I do agree that people
expect /bin/sh to be bash (or the one configured by environment.binsh)
on NixOS.

So this should make both others and me happy in that I could just use
confinement.binSh = "${pkgs.dash}/bin/dash" for the services I confine.

[1]: https://github.com/NixOS/nixpkgs/pull/57519#issuecomment-472855704

Signed-off-by: aszlig <aszlig@nix.build>
2019-03-14 19:14:05 +01:00
aszlig 0ba48f46da nixos/systemd-chroot: Rename chroot to confinement
Quoting @edolstra from [1]:

  I don't really like the name "chroot", something like "confine[ment]"
  or "restrict" seems better. Conceptually we're not providing a
  completely different filesystem tree but a restricted view of the same
  tree.

I already used "confinement" as a sub-option and I do agree that
"chroot" sounds a bit too specific (especially because not *only* chroot
is involved).

So this changes the module name and its option to use "confinement"
instead of "chroot" and also renames the "chroot.confinement" to
"confinement.mode".

[1]: https://github.com/NixOS/nixpkgs/pull/57519#issuecomment-472855704

Signed-off-by: aszlig <aszlig@nix.build>
2019-03-14 19:14:03 +01:00