summary refs log tree commit diff
path: root/nixos/modules/system/boot/systemd-unit-options.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-17 15:02:53 +0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-03-17 15:02:53 +0100
commit511b86d22dbf3d4a52ac9d6437f0ee0375468f01 (patch)
tree1c8bdb098eaa4cf95cb3cc3c44114b3940b31797 /nixos/modules/system/boot/systemd-unit-options.nix
parent28b7d67d08a7a76c7508d4b6a8f791c2eba4a1b9 (diff)
downloadnixpkgs-511b86d22dbf3d4a52ac9d6437f0ee0375468f01.tar
nixpkgs-511b86d22dbf3d4a52ac9d6437f0ee0375468f01.tar.gz
nixpkgs-511b86d22dbf3d4a52ac9d6437f0ee0375468f01.tar.bz2
nixpkgs-511b86d22dbf3d4a52ac9d6437f0ee0375468f01.tar.lz
nixpkgs-511b86d22dbf3d4a52ac9d6437f0ee0375468f01.tar.xz
nixpkgs-511b86d22dbf3d4a52ac9d6437f0ee0375468f01.tar.zst
nixpkgs-511b86d22dbf3d4a52ac9d6437f0ee0375468f01.zip
Add an option to reload rather than restart changed units
Diffstat (limited to 'nixos/modules/system/boot/systemd-unit-options.nix')
-rw-r--r--nixos/modules/system/boot/systemd-unit-options.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/nixos/modules/system/boot/systemd-unit-options.nix b/nixos/modules/system/boot/systemd-unit-options.nix
index 113990814ef..784025f6bab 100644
--- a/nixos/modules/system/boot/systemd-unit-options.nix
+++ b/nixos/modules/system/boot/systemd-unit-options.nix
@@ -243,6 +243,17 @@ in rec {
       '';
     };
 
+    reloadIfChanged = mkOption {
+      type = types.bool;
+      default = false;
+      description = ''
+        Whether the service should be reloaded during a NixOS
+        configuration switch if its definition has changed.  If
+        enabled, the value of <option>restartIfChanged</option> is
+        ignored.
+      '';
+    };
+
     stopIfChanged = mkOption {
       type = types.bool;
       default = true;