Merge master into staging-next

This commit is contained in:
github-actions[bot]
2021-05-08 18:22:46 +00:00
committed by GitHub
86 changed files with 1267 additions and 220 deletions
+2 -2
View File
@@ -315,7 +315,7 @@ in
restya-board = 284;
mighttpd2 = 285;
hass = 286;
monero = 287;
#monero = 287; # dynamically allocated as of 2021-05-08
ceph = 288;
duplicati = 289;
monetdb = 290;
@@ -617,7 +617,7 @@ in
restya-board = 284;
mighttpd2 = 285;
hass = 286;
monero = 287;
# monero = 287; # dynamically allocated as of 2021-05-08
ceph = 288;
duplicati = 289;
monetdb = 290;
+13 -7
View File
@@ -4,7 +4,6 @@ with lib;
let
cfg = config.services.monero;
dataDir = "/var/lib/monero";
listToConf = option: list:
concatMapStrings (value: "${option}=${value}\n") list;
@@ -53,11 +52,19 @@ in
enable = mkEnableOption "Monero node daemon";
dataDir = mkOption {
type = types.str;
default = "/var/lib/monero";
description = ''
The directory where Monero stores its data files.
'';
};
mining.enable = mkOption {
type = types.bool;
default = false;
description = ''
Whether to mine moneroj.
Whether to mine monero.
'';
};
@@ -198,15 +205,14 @@ in
config = mkIf cfg.enable {
users.users.monero = {
uid = config.ids.uids.monero;
isSystemUser = true;
group = "monero";
description = "Monero daemon user";
home = dataDir;
home = cfg.dataDir;
createHome = true;
};
users.groups.monero = {
gid = config.ids.gids.monero;
};
users.groups.monero = { };
systemd.services.monero = {
description = "monero daemon";
+3
View File
@@ -73,4 +73,7 @@ in {
"docker rmi ${hello2.imageName}",
)
'';
# Remove when the formatter has been removed and a linter has been added
skipLint = true;
})
+4 -1
View File
@@ -4,7 +4,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
{
name = "docker-tools-overlay";
meta = with pkgs.lib.maintainers; {
maintainers = [ lnl7 ];
maintainers = [ lnl7 roberth ];
};
nodes = {
@@ -30,4 +30,7 @@ import ./make-test-python.nix ({ pkgs, ... }:
# drw------- 99 0 0 100 Apr 14 11:36 /nix/store
docker.succeed("docker run --rm -u 1000:1000 ${pkgs.dockerTools.examples.bash.imageName} bash --version")
'';
# Remove when the formatter has been removed and a linter has been added
skipLint = true;
})
+4 -1
View File
@@ -3,7 +3,7 @@
import ./make-test-python.nix ({ pkgs, ... }: {
name = "docker-tools";
meta = with pkgs.lib.maintainers; {
maintainers = [ lnl7 ];
maintainers = [ lnl7 roberth ];
};
nodes = {
@@ -365,4 +365,7 @@ import ./make-test-python.nix ({ pkgs, ... }: {
"docker run --rm ${examples.layeredImageWithFakeRootCommands.imageName} sh -c 'stat -c '%u' /home/jane | grep -E ^1000$'"
)
'';
# Remove when the formatter has been removed and a linter has been added
skipLint = true;
})
+2 -1
View File
@@ -59,7 +59,8 @@ import ./make-test-python.nix {
"chroot-exec chown 65534 /bin",
)
machine.succeed(
'test "$(chroot-exec id -u)" = 0', "chroot-exec chown 0 /bin",
'test "$(chroot-exec id -u)" = 0',
"chroot-exec chown 0 /bin",
)
'';
}