Merge master into staging-next
This commit is contained in:
@@ -33,7 +33,7 @@
|
||||
kernel=u-boot-rpi3.bin
|
||||
|
||||
# Boot in 64-bit mode.
|
||||
arm_control=0x200
|
||||
arm_64bit=1
|
||||
|
||||
# U-Boot used to need this to work, regardless of whether UART is actually used or not.
|
||||
# TODO: check when/if this can be removed.
|
||||
|
||||
@@ -9,12 +9,7 @@ let
|
||||
cfg = dmcfg.sddm;
|
||||
xEnv = config.systemd.services.display-manager.environment;
|
||||
|
||||
sddm = if config.services.xserver.desktopManager.lxqt.enable then
|
||||
# TODO: Move lxqt to libsForQt515
|
||||
pkgs.libsForQt514.sddm
|
||||
else
|
||||
pkgs.libsForQt5.sddm
|
||||
;
|
||||
sddm = pkgs.libsForQt5.sddm;
|
||||
|
||||
xserverWrapper = pkgs.writeScript "xserver-wrapper" ''
|
||||
#!/bin/sh
|
||||
|
||||
+16
-2
@@ -4,12 +4,13 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
||||
meta = with pkgs.stdenv.lib.maintainers; {
|
||||
maintainers = [ lnl7 ];
|
||||
};
|
||||
|
||||
machine = { pkgs, ... }: {
|
||||
services.uwsgi.enable = true;
|
||||
services.uwsgi.plugins = [ "python3" ];
|
||||
services.uwsgi.plugins = [ "python3" "php" ];
|
||||
services.uwsgi.instance = {
|
||||
type = "emperor";
|
||||
vassals.hello = {
|
||||
vassals.python = {
|
||||
type = "normal";
|
||||
master = true;
|
||||
workers = 2;
|
||||
@@ -25,6 +26,17 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
||||
'';
|
||||
pythonPackages = self: with self; [ flask ];
|
||||
};
|
||||
vassals.php = {
|
||||
type = "normal";
|
||||
master = true;
|
||||
workers = 2;
|
||||
http-socket = ":8001";
|
||||
http-socket-modifier1 = 14;
|
||||
php-index = "index.php";
|
||||
php-docroot = pkgs.writeTextDir "index.php" ''
|
||||
<?php echo "Hello World\n"; ?>
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -33,6 +45,8 @@ import ./make-test-python.nix ({ pkgs, ... }:
|
||||
machine.wait_for_unit("multi-user.target")
|
||||
machine.wait_for_unit("uwsgi.service")
|
||||
machine.wait_for_open_port(8000)
|
||||
machine.wait_for_open_port(8001)
|
||||
assert "Hello World" in machine.succeed("curl -fv 127.0.0.1:8000")
|
||||
assert "Hello World" in machine.succeed("curl -fv 127.0.0.1:8001")
|
||||
'';
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user