diff options
author | Oliver Charles <ollie@ocharles.org.uk> | 2014-02-02 14:41:26 +0000 |
---|---|---|
committer | Oliver Charles <ollie@ocharles.org.uk> | 2014-02-02 14:41:26 +0000 |
commit | 41775167ac69a001f40c11e2ee9576887e17b8b4 (patch) | |
tree | 61669f43df76bc6e808e8319d6276ce3fdb06cb2 /nixos/modules/system/activation/top-level.nix | |
parent | f3ac3a265b5c8e3f15e76c2261c9c2500c3493ba (diff) | |
download | nixlib-41775167ac69a001f40c11e2ee9576887e17b8b4.tar nixlib-41775167ac69a001f40c11e2ee9576887e17b8b4.tar.gz nixlib-41775167ac69a001f40c11e2ee9576887e17b8b4.tar.bz2 nixlib-41775167ac69a001f40c11e2ee9576887e17b8b4.tar.lz nixlib-41775167ac69a001f40c11e2ee9576887e17b8b4.tar.xz nixlib-41775167ac69a001f40c11e2ee9576887e17b8b4.tar.zst nixlib-41775167ac69a001f40c11e2ee9576887e17b8b4.zip |
switch-to-configuration.pl: Interact via DBus
Currently switch-to-configuration.pl uses system() calls to interact with DBus. This can be error prone, especially when we are parsing output that could change. In this commit, almost all calls to the systemctl binary have been replaced with equivalent operations via DBus.
Diffstat (limited to 'nixos/modules/system/activation/top-level.nix')
-rw-r--r-- | nixos/modules/system/activation/top-level.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/system/activation/top-level.nix b/nixos/modules/system/activation/top-level.nix index d9891f434cc8..30a529988a96 100644 --- a/nixos/modules/system/activation/top-level.nix +++ b/nixos/modules/system/activation/top-level.nix @@ -108,7 +108,7 @@ 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 -I${pkgs.perlPackages.XMLTwig}/lib/perl5/site_perl -I${pkgs.perlPackages.XMLParser}/lib/perl5/site_perl -I${pkgs.perlPackages.NetDBus}/lib/perl5/site_perl -I${pkgs.perlPackages.FileSlurp}/lib/perl5/site_perl"; }; |