Skip to content

Commit

Permalink
Merge staging-next into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
FRidh committed Aug 1, 2020
2 parents e60478a + 50c060d commit 67af42e
Show file tree
Hide file tree
Showing 348 changed files with 5,415 additions and 2,744 deletions.
8 changes: 8 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ indent_style = space
# Disable file types or individual files
# some of these files may be auto-generated and/or require significant changes

[*.{c,h}]
insert_final_newline = unset
trim_trailing_whitespace = unset

[*.{key,ovpn}]
insert_final_newline = unset
end_of_line = unset

[*.lock]
indent_size = unset

Expand Down
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
22 changes: 22 additions & 0 deletions .github/workflows/editorconfig.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: actions

on:
pull_request:
branches:
- master

jobs:
editorconfig:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: technote-space/get-diff-action@v2.0.2
- name: editorconfig check
env:
VERSION: "2.0.4"
OS: "linux"
ARCH: "amd64"
run: |
curl -sSf -O -L -C - https://github.com/editorconfig-checker/editorconfig-checker/releases/download/$VERSION/ec-$OS-$ARCH.tar.gz && \
tar xzf ec-$OS-$ARCH.tar.gz && \
./bin/ec-$OS-$ARCH -disable-indentation ${{ env.GIT_DIFF }}
8 changes: 1 addition & 7 deletions doc/builders/packages/steam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,7 @@
<title>How to play</title>

<para>
For 64-bit systems it's important to have
<programlisting>hardware.opengl.driSupport32Bit = true;</programlisting>
in your <filename>/etc/nixos/configuration.nix</filename>. You'll also need
<programlisting>hardware.pulseaudio.support32Bit = true;</programlisting>
if you are using PulseAudio - this will enable 32bit ALSA apps integration. To use the Steam controller or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pro, you need to add
<programlisting>hardware.steam-hardware.enable = true;</programlisting>
to your configuration.
Use <programlisting>programs.steam.enable = true;</programlisting> if you want to add steam to systemPackages and also enable a few workarrounds aswell as Steam controller support or other Steam supported controllers such as the DualShock 4 or Nintendo Switch Pr.
</para>
</section>

Expand Down
2 changes: 1 addition & 1 deletion doc/builders/packages/urxvt.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ map (p: p.name) pkgs.rxvt-unicode.plugins
In addition to <literal>plugins</literal> the options
<literal>extraDeps</literal> and <literal>perlDeps</literal> can be used
to install extra packages.
<literal>extraDeps</literal> can be used, for example, to provide
<literal>extraDeps</literal> can be used, for example, to provide
<literal>xsel</literal> (a clipboard manager) to the clipboard plugin,
without installing it globally:
<programlisting>rxvt-unicode.override { configure = { availablePlugins, ... }: {
Expand Down
2 changes: 1 addition & 1 deletion doc/languages-frameworks/beam.xml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<title>How to Install BEAM Packages</title>

<para>
BEAM builders are not registered at the top level, simply because they are not relevant to the vast majority of Nix users.
BEAM builders are not registered at the top level, simply because they are not relevant to the vast majority of Nix users.
To install any of those builders into your profile, refer to them by their attribute path <literal>beamPackages.rebar3</literal>:
</para>

Expand Down
17 changes: 8 additions & 9 deletions doc/languages-frameworks/emscripten.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ Modes of use of `emscripten`:
* **Declarative usage**:

This mode is far more power full since this makes use of `nix` for dependency management of emscripten libraries and targets by using the `mkDerivation` which is implemented by `pkgs.emscriptenStdenv` and `pkgs.buildEmscriptenPackage`. The source for the packages is in `pkgs/top-level/emscripten-packages.nix` and the abstraction behind it in `pkgs/development/em-modules/generic/default.nix`.
* build and install all packages:
* `nix-env -iA emscriptenPackages`
* dev-shell for zlib implementation hacking:
* `nix-shell -A emscriptenPackages.zlib`
* build and install all packages:
* `nix-env -iA emscriptenPackages`

* dev-shell for zlib implementation hacking:
* `nix-shell -A emscriptenPackages.zlib`


## Imperative usage
Expand Down Expand Up @@ -90,7 +90,7 @@ See the `zlib` example:
libz.so.${old.version} -I . -o example.js

echo "Using node to execute the test"
${pkgs.nodejs}/bin/node ./example.js
${pkgs.nodejs}/bin/node ./example.js

set +x
if [ $? -ne 0 ]; then
Expand All @@ -112,7 +112,7 @@ See the `zlib` example:

### Usage 2: pkgs.buildEmscriptenPackage

This `xmlmirror` example features a emscriptenPackage which is defined completely from this context and no `pkgs.zlib.override` is used.
This `xmlmirror` example features a emscriptenPackage which is defined completely from this context and no `pkgs.zlib.override` is used.

xmlmirror = pkgs.buildEmscriptenPackage rec {
name = "xmlmirror";
Expand Down Expand Up @@ -163,7 +163,7 @@ This `xmlmirror` example features a emscriptenPackage which is defined completel
checkPhase = ''

'';
};
};

### Declarative debugging

Expand All @@ -182,4 +182,3 @@ Use `nix-shell -I nixpkgs=/some/dir/nixpkgs -A emscriptenPackages.libz` and from
Using this toolchain makes it easy to leverage `nix` from NixOS, MacOSX or even Windows (WSL+ubuntu+nix). This toolchain is reproducible, behaves like the rest of the packages from nixpkgs and contains a set of well working examples to learn and adapt from.

If in trouble, ask the maintainers.

7 changes: 6 additions & 1 deletion doc/languages-frameworks/go.xml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ pet = buildGoModule rec {
<varname>subPackages</varname> limits the builder from building child packages that have not been listed. If <varname>subPackages</varname> is not specified, all child packages will be built.
</para>
</callout>
<callout arearefs='ex-buildGoModule-3'>
<para>
<varname>runVend</varname> runs the vend command to generate the vendor directory. This is useful if your code depends on c code and go mod tidy does not include the needed sources to build.
</para>
</callout>
</calloutlist>
</para>

Expand All @@ -72,7 +77,7 @@ pet = buildGoModule rec {

When `null` is used as a value, rather than fetching the dependencies
and vendoring them, we use the vendoring included within the source repo.
If you'd like to not have to update this field on dependency changes,
If you'd like to not have to update this field on dependency changes,
run `go mod vendor` in your source repo and set 'vendorSha256 = null;'
</para>
</section>
Expand Down
2 changes: 1 addition & 1 deletion doc/languages-frameworks/rust.section.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ pkgs.rustPlatform.buildRustPackage {

When using `buildRustPackage`, the `checkPhase` is enabled by default and runs
`cargo test` on the package to build. To make sure that we don't compile the
sources twice and to actually test the artifacts that will be used at runtime,
sources twice and to actually test the artifacts that will be used at runtime,
the tests will be ran in the `release` mode by default.

However, in some cases the test-suite of a package doesn't work properly in the
Expand Down
4 changes: 2 additions & 2 deletions doc/old/cross.txt
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ fi

preConfigure=preConfigure
preConfigure() {

# Determine the frontends to build.
langs="c"
if test -n "$langCC"; then
Expand Down Expand Up @@ -262,7 +262,7 @@ postInstall() {

#if test -z "$profiledCompiler"; then
#makeFlags="bootstrap"
#else
#else
#makeFlags="profiledbootstrap"
#fi

Expand Down
2 changes: 1 addition & 1 deletion lib/tests/modules/define-option-dependently.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Always defined, but the value depends on the presence of an option.
config = {
value = if options ? enable then 360 else 7;
}
}
# Only define if possible.
// lib.optionalAttrs (options ? enable) {
enable = true;
Expand Down
30 changes: 30 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -833,6 +833,12 @@
githubId = 135230;
name = "Aycan iRiCAN";
};
artturin = {
email = "artturin@artturin.com";
github = "artturin";
githubId = 56650223;
name = "Artturi N";
};
b4dm4n = {
email = "fabianm88@gmail.com";
github = "B4dM4n";
Expand Down Expand Up @@ -1930,6 +1936,12 @@
githubId = 14032;
name = "Daniel Brockman";
};
ddelabru = {
email = "ddelabru@redhat.com";
github = "ddelabru";
githubId = 39909293;
name = "Dominic Delabruere";
};
dduan = {
email = "daniel@duan.ca";
github = "dduan";
Expand Down Expand Up @@ -4151,6 +4163,12 @@
github = "karantan";
githubId = 7062631;
};
KarlJoad = {
email = "karl@hallsby.com";
github = "KarlJoad";
githubId = 34152449;
name = "Karl Hallsby";
};
karolchmist = {
email = "info+nix@chmist.com";
name = "karolchmist";
Expand Down Expand Up @@ -7480,6 +7498,12 @@
githubId = 2770647;
name = "Simon Vandel Sillesen";
};
siraben = {
email = "bensiraphob@gmail.com";
github = "siraben";
githubId = 8219659;
name = "Siraphob Phipathananunth";
};
siriobalmelli = {
email = "sirio@b-ad.ch";
github = "siriobalmelli";
Expand Down Expand Up @@ -8022,6 +8046,12 @@
githubId = 26417242;
name = "Mikolaj Galkowski";
};
TethysSvensson = {
email = "freaken@freaken.dk";
github = "TethysSvensson";
githubId = 4294434;
name = "Tethys Svensson";
};
teto = {
email = "mcoudron@hotmail.com";
github = "teto";
Expand Down
3 changes: 1 addition & 2 deletions maintainers/scripts/rebuild-amount.sh
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ nixexpr() {
"darwin-tested" "unstable" "stdenvBootstrapTools"
"moduleSystem" "lib-tests" # these just confuse the output
];
in
tweak (builtins.removeAttrs hydraJobs blacklist)
EONIX
Expand Down Expand Up @@ -124,4 +124,3 @@ if [ -n "$optPrint" ]; then
echo
cat "$newlist"
fi

6 changes: 3 additions & 3 deletions nixos/doc/manual/man-nixos-build-vms.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>nixos-build-vms</command>
<command>nixos-build-vms</command>
<arg>
<option>--show-trace</option>
</arg>

<arg>
<option>--no-out-link</option>
</arg>

<arg>
<option>--help</option>
</arg>
Expand Down
10 changes: 5 additions & 5 deletions nixos/doc/manual/man-nixos-enter.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,21 @@
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>nixos-enter</command>
<command>nixos-enter</command>
<arg>
<arg choice='plain'>
<option>--root</option>
</arg>
<replaceable>root</replaceable>
</arg>

<arg>
<arg choice='plain'>
<option>--system</option>
</arg>
<replaceable>system</replaceable>
</arg>

<arg>
<arg choice='plain'>
<option>-c</option>
Expand All @@ -40,13 +40,13 @@
<option>--silent</option>
</arg>
</arg>

<arg>
<arg choice='plain'>
<option>--help</option>
</arg>
</arg>

<arg>
<arg choice='plain'>
<option>--</option>
Expand Down
11 changes: 11 additions & 0 deletions nixos/doc/manual/release-notes/rl-2009.xml
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ systemd.services.mysql.serviceConfig.ReadWritePaths = [ "/var/data" ];
This will make container tools like Podman work as non-root users out of the box.
</para>
</listitem>
<listitem>
<para>
The various documented workarounds to use steam have been converted to a module. <varname>programs.steam.enable</varname> enables steam, controller support and the workarounds.
</para>
</listitem>
</itemizedlist>
</section>

Expand Down Expand Up @@ -556,6 +561,12 @@ services.bitcoind."example-mainnet" = {
</programlisting>
</para>
</listitem>
<listitem>
<para>
Graylog introduced a change in the LDAP server certificate validation behaviour for version 3.3.3 which might break existing setups.
When updating Graylog from a version before 3.3.3 make sure to check the Graylog <link xlink:href="https://www.graylog.org/post/announcing-graylog-v3-3-3">release info</link> for information on how to avoid the issue.
</para>
</listitem>
</itemizedlist>
</section>

Expand Down
2 changes: 1 addition & 1 deletion nixos/lib/make-disk-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ let format' = format; in let
vdi = "vdi";
vpc = "vhd";
raw = "img";
}.${format};
}.${format} or format;

rootPartition = { # switch-case
legacy = "1";
Expand Down
1 change: 1 addition & 0 deletions nixos/modules/module-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
./programs/ssmtp.nix
./programs/sysdig.nix
./programs/systemtap.nix
./programs/steam.nix
./programs/sway.nix
./programs/system-config-printer.nix
./programs/thefuck.nix
Expand Down
25 changes: 25 additions & 0 deletions nixos/modules/programs/steam.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{ config, lib, pkgs, ... }:

with lib;

let
cfg = config.programs.steam;
in {
options.programs.steam.enable = mkEnableOption "steam";

config = mkIf cfg.enable {
hardware.opengl = { # this fixes the "glXChooseVisual failed" bug, context: https://github.com/NixOS/nixpkgs/issues/47932
enable = true;
driSupport32Bit = true;
};

# optionally enable 32bit pulseaudio support if pulseaudio is enabled
hardware.pulseaudio.support32Bit = config.hardware.pulseaudio.enable;

hardware.steam-hardware.enable = true;

environment.systemPackages = [ pkgs.steam ];
};

meta.maintainers = with maintainers; [ mkg20001 ];
}
Loading

0 comments on commit 67af42e

Please sign in to comment.