diff options
author | edef <edef@edef.eu> | 2017-08-12 21:14:36 +0200 |
---|---|---|
committer | edef <edef@edef.eu> | 2018-05-03 20:19:23 +0200 |
commit | 54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6 (patch) | |
tree | 4ba10634ae2624f5cabeb4e7146e27ee34d63943 /nixos/modules/system/activation/top-level.nix | |
parent | 542ef2b182dff9756abf782a650f80599c515e4a (diff) | |
download | nixlib-54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6.tar nixlib-54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6.tar.gz nixlib-54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6.tar.bz2 nixlib-54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6.tar.lz nixlib-54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6.tar.xz nixlib-54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6.tar.zst nixlib-54a13b07d5925c8e890e0d9aaa0842cd7ae0d8d6.zip |
switch-to-configuration: use Net::DBus to retrieve the list of units
This resolves the FIXME, and opens up the possibility of using more of the systemd DBus interface to make things more robust.
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index 091a2e412eed..e2d1dd49ef0e 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -127,7 +127,8 @@ let configurationName = config.boot.loader.grub.configurationName; # Needed by switch-to-configuration. - perl = "${pkgs.perl}/bin/perl -I${pkgs.perlPackages.FileSlurp}/lib/perl5/site_perl"; + + perl = "${pkgs.perl}/bin/perl " + (concatMapStringsSep " " (lib: "-I${lib}/${pkgs.perl.libPrefix}") (with pkgs.perlPackages; [ FileSlurp NetDBus XMLParser XMLTwig ])); } else throw "\nFailed assertions:\n${concatStringsSep "\n" (map (x: "- ${x}") failed)}"); # Replace runtime dependencies |