Merge staging-next-21.05 into staging-21.05
This commit is contained in:
commit
f15cd760a5
|
@ -35,10 +35,20 @@ in
|
||||||
|
|
||||||
token = mkOption {
|
token = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
description = "The k3s token to use when connecting to the server. This option only makes sense for an agent.";
|
description = ''
|
||||||
|
The k3s token to use when connecting to the server. This option only makes sense for an agent.
|
||||||
|
WARNING: This option will expose store your token unencrypted world-readable in the nix store.
|
||||||
|
If this is undesired use the tokenFile option instead.
|
||||||
|
'';
|
||||||
default = "";
|
default = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tokenFile = mkOption {
|
||||||
|
type = types.nullOr types.path;
|
||||||
|
description = "File path containing k3s token to use when connecting to the server. This option only makes sense for an agent.";
|
||||||
|
default = null;
|
||||||
|
};
|
||||||
|
|
||||||
docker = mkOption {
|
docker = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
|
@ -68,8 +78,8 @@ in
|
||||||
message = "serverAddr should be set if role is 'agent'";
|
message = "serverAddr should be set if role is 'agent'";
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
assertion = cfg.role == "agent" -> cfg.token != "";
|
assertion = cfg.role == "agent" -> cfg.token != "" || cfg.tokenFile != null;
|
||||||
message = "token should be set if role is 'agent'";
|
message = "token or tokenFile should be set if role is 'agent'";
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -81,6 +91,8 @@ in
|
||||||
# supporting it, or their bundled containerd
|
# supporting it, or their bundled containerd
|
||||||
systemd.enableUnifiedCgroupHierarchy = false;
|
systemd.enableUnifiedCgroupHierarchy = false;
|
||||||
|
|
||||||
|
environment.systemPackages = [ config.services.k3s.package ];
|
||||||
|
|
||||||
systemd.services.k3s = {
|
systemd.services.k3s = {
|
||||||
description = "k3s service";
|
description = "k3s service";
|
||||||
after = [ "network.service" "firewall.service" ] ++ (optional cfg.docker "docker.service");
|
after = [ "network.service" "firewall.service" ] ++ (optional cfg.docker "docker.service");
|
||||||
|
@ -102,7 +114,12 @@ in
|
||||||
"${cfg.package}/bin/k3s ${cfg.role}"
|
"${cfg.package}/bin/k3s ${cfg.role}"
|
||||||
] ++ (optional cfg.docker "--docker")
|
] ++ (optional cfg.docker "--docker")
|
||||||
++ (optional cfg.disableAgent "--disable-agent")
|
++ (optional cfg.disableAgent "--disable-agent")
|
||||||
++ (optional (cfg.role == "agent") "--server ${cfg.serverAddr} --token ${cfg.token}")
|
++ (optional (cfg.role == "agent") "--server ${cfg.serverAddr} ${
|
||||||
|
if cfg.tokenFile != null then
|
||||||
|
"--token-file ${cfg.tokenFile}"
|
||||||
|
else
|
||||||
|
"--token ${cfg.token}"
|
||||||
|
}")
|
||||||
++ [ cfg.extraFlags ]
|
++ [ cfg.extraFlags ]
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis
|
{ lib, stdenv, fetchFromGitHub, cmake, SDL2, libGLU, libGL, zlib, libjpeg, libogg, libvorbis
|
||||||
, openal, curl }:
|
, openal, curl, copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dhewm3";
|
pname = "dhewm3";
|
||||||
|
@ -21,9 +21,18 @@ stdenv.mkDerivation rec {
|
||||||
cd "$(ls -d dhewm3-*.src)"/neo
|
cd "$(ls -d dhewm3-*.src)"/neo
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake ];
|
nativeBuildInputs = [ cmake copyDesktopItems ];
|
||||||
buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ];
|
buildInputs = [ SDL2 libGLU libGL zlib libjpeg libogg libvorbis openal curl ];
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "dhewm3";
|
||||||
|
exec = "dhewm3";
|
||||||
|
desktopName = "Doom 3";
|
||||||
|
categories = "Game;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, openal, fluidsynth_1
|
{ lib, stdenv, fetchFromGitHub, cmake, makeWrapper, openal, fluidsynth_1
|
||||||
, soundfont-fluid, libGL, SDL2, bzip2, zlib, libjpeg, libsndfile, mpg123
|
, soundfont-fluid, libGL, SDL2, bzip2, zlib, libjpeg, libsndfile, mpg123
|
||||||
, game-music-emu, pkg-config }:
|
, game-music-emu, pkg-config, copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
let
|
let
|
||||||
zmusic-src = fetchFromGitHub {
|
zmusic-src = fetchFromGitHub {
|
||||||
|
@ -38,7 +38,7 @@ let
|
||||||
fetchSubmodules = true;
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake makeWrapper pkg-config ];
|
nativeBuildInputs = [ cmake makeWrapper pkg-config copyDesktopItems ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
SDL2
|
SDL2
|
||||||
libGL
|
libGL
|
||||||
|
@ -55,7 +55,18 @@ let
|
||||||
|
|
||||||
NIX_CFLAGS_LINK = "-lopenal -lfluidsynth";
|
NIX_CFLAGS_LINK = "-lopenal -lfluidsynth";
|
||||||
|
|
||||||
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "gzdoom";
|
||||||
|
exec = "gzdoom";
|
||||||
|
desktopName = "GZDoom";
|
||||||
|
categories = "Game;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
|
||||||
install -Dm755 gzdoom "$out/lib/gzdoom/gzdoom"
|
install -Dm755 gzdoom "$out/lib/gzdoom/gzdoom"
|
||||||
for i in *.pk3; do
|
for i in *.pk3; do
|
||||||
install -Dm644 "$i" "$out/lib/gzdoom/$i"
|
install -Dm644 "$i" "$out/lib/gzdoom/$i"
|
||||||
|
@ -68,6 +79,8 @@ let
|
||||||
done
|
done
|
||||||
mkdir $out/bin
|
mkdir $out/bin
|
||||||
makeWrapper $out/lib/gzdoom/gzdoom $out/bin/gzdoom
|
makeWrapper $out/lib/gzdoom/gzdoom $out/bin/gzdoom
|
||||||
|
|
||||||
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad }:
|
{ lib, stdenv, SDL, fetchurl, gzip, libvorbis, libmad, copyDesktopItems, makeDesktopItem }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "quakespasm";
|
pname = "quakespasm";
|
||||||
majorVersion = "0.93";
|
majorVersion = "0.93";
|
||||||
|
@ -11,6 +12,7 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
sourceRoot = "${pname}-${version}/Quake";
|
sourceRoot = "${pname}-${version}/Quake";
|
||||||
|
|
||||||
|
nativeBuildInputs = [ copyDesktopItems ];
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gzip SDL libvorbis libmad
|
gzip SDL libvorbis libmad
|
||||||
];
|
];
|
||||||
|
@ -24,7 +26,16 @@ stdenv.mkDerivation rec {
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = {
|
desktopItems = [
|
||||||
|
(makeDesktopItem {
|
||||||
|
name = "quakespasm";
|
||||||
|
exec = "quake";
|
||||||
|
desktopName = "Quakespasm";
|
||||||
|
categories = "Game;";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
description = "An engine for iD software's Quake";
|
description = "An engine for iD software's Quake";
|
||||||
homepage = "http://quakespasm.sourceforge.net/";
|
homepage = "http://quakespasm.sourceforge.net/";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
{ lib, python3, mautrix-telegram, fetchFromGitHub }:
|
{ lib, python3, mautrix-telegram, fetchFromGitHub
|
||||||
|
, withE2BE ? true
|
||||||
|
}:
|
||||||
|
|
||||||
with python3.pkgs;
|
with python3.pkgs;
|
||||||
|
|
||||||
|
@ -39,6 +41,11 @@ in buildPythonPackage rec {
|
||||||
pillow
|
pillow
|
||||||
lxml
|
lxml
|
||||||
setuptools
|
setuptools
|
||||||
|
] ++ lib.optionals withE2BE [
|
||||||
|
asyncpg
|
||||||
|
python-olm
|
||||||
|
pycryptodome
|
||||||
|
unpaddedbase64
|
||||||
] ++ dbDrivers;
|
] ++ dbDrivers;
|
||||||
|
|
||||||
# `alembic` (a database migration tool) is only needed for the initial setup,
|
# `alembic` (a database migration tool) is only needed for the initial setup,
|
||||||
|
|
Loading…
Reference in New Issue