From 8604117b48f297a8891eeabb16dc5e3a6e4ae915 Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Tue, 31 May 2016 15:29:53 +0200 Subject: [PATCH 1/5] dbus: remove unused imports --- pkgs/development/libraries/dbus/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/libraries/dbus/default.nix b/pkgs/development/libraries/dbus/default.nix index 4e6fa238bfb..218e7651eca 100644 --- a/pkgs/development/libraries/dbus/default.nix +++ b/pkgs/development/libraries/dbus/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, pkgconfig, expat, systemd, glib, dbus_glib, python +{ stdenv, lib, fetchurl, pkgconfig, expat, systemd , libX11 ? null, libICE ? null, libSM ? null, x11Support ? (stdenv.isLinux || stdenv.isDarwin) }: assert x11Support -> libX11 != null From 992c514a20cf2da897db68169d7dcab721e8c7b7 Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Tue, 31 May 2016 15:30:31 +0200 Subject: [PATCH 2/5] (network,remote-fs)-pre: remove duplicate wantedBy and before this is part of (network,remote-fs).target, repectively --- nixos/modules/system/boot/systemd.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index df72be1b4be..72452c45e64 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -727,16 +727,6 @@ in systemd.targets.network-online.after = [ "ip-up.target" ]; - systemd.targets.network-pre = { - wantedBy = [ "network.target" ]; - before = [ "network.target" ]; - }; - - systemd.targets.remote-fs-pre = { - wantedBy = [ "remote-fs.target" ]; - before = [ "remote-fs.target" ]; - }; - systemd.units = mapAttrs' (n: v: nameValuePair "${n}.target" (targetToUnit n v)) cfg.targets // mapAttrs' (n: v: nameValuePair "${n}.service" (serviceToUnit n v)) cfg.services From 2fd6b36c51babbf72cd459cef3a5b76914065eec Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Tue, 31 May 2016 16:46:35 +0200 Subject: [PATCH 3/5] networkd.module: remove before network-online this is already upstream default --- nixos/modules/system/boot/networkd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/system/boot/networkd.nix b/nixos/modules/system/boot/networkd.nix index ab748550026..b79683660c5 100644 --- a/nixos/modules/system/boot/networkd.nix +++ b/nixos/modules/system/boot/networkd.nix @@ -677,7 +677,7 @@ in }; systemd.services.systemd-networkd-wait-online = { - before = [ "network-online.target" "ip-up.target" ]; + before = [ "ip-up.target" ]; wantedBy = [ "network-online.target" "ip-up.target" ]; }; From 322c8231931a3158b4abc836090bdfa1ce92f5f2 Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Thu, 9 Jun 2016 15:41:56 +0200 Subject: [PATCH 4/5] agetty: remove override for container-getty@.service since it's upstream Added in systemd/systemd@68ac53e --- nixos/modules/services/ttys/agetty.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/ttys/agetty.nix b/nixos/modules/services/ttys/agetty.nix index ea7196fc873..051d54e932f 100644 --- a/nixos/modules/services/ttys/agetty.nix +++ b/nixos/modules/services/ttys/agetty.nix @@ -80,8 +80,7 @@ in }; systemd.services."container-getty@" = - { unitConfig.ConditionPathExists = "/dev/pts/%I"; # Work around being respawned when "machinectl login" exits. - serviceConfig.ExecStart = gettyCmd "--noclear --keep-baud pts/%I 115200,38400,9600 $TERM"; + { serviceConfig.ExecStart = gettyCmd "--noclear --keep-baud pts/%I 115200,38400,9600 $TERM"; restartIfChanged = false; }; From 53f3c2a2783b8c910b98b1a6a25e75d7a1f04ec8 Mon Sep 17 00:00:00 2001 From: Alexander Ried Date: Thu, 9 Jun 2016 15:45:55 +0200 Subject: [PATCH 5/5] systemd: add some missing upstream units --- nixos/modules/system/boot/systemd.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix index 72452c45e64..3fa257f9668 100644 --- a/nixos/modules/system/boot/systemd.nix +++ b/nixos/modules/system/boot/systemd.nix @@ -14,6 +14,7 @@ let upstreamSystemUnits = [ # Targets. "basic.target" + "busnames.target" "sysinit.target" "sockets.target" "graphical.target" @@ -140,6 +141,7 @@ let "user.slice" "machine.slice" "systemd-machined.service" + "systemd-nspawn@.service" # Temporary file creation / cleanup. "systemd-tmpfiles-clean.service"