about summary refs log tree commit diff
path: root/nixos/modules/system
diff options
context:
space:
mode:
authornicoo <nicoo@mur.at>2023-11-21 16:27:57 +0000
committernicoo <nicoo@mur.at>2023-11-22 10:49:50 +0000
commitf1b17edaea281783b6fc52917e615f4dda71ce66 (patch)
tree50727895817c81b12c0663212105e73db5d7c06d /nixos/modules/system
parentaba2edda44b4e7be9bcef0c4f01c69a15f31b2e4 (diff)
nixos/systemd: Refactor `package` option
Diffstat (limited to 'nixos/modules/system')
-rw-r--r--nixos/modules/system/boot/systemd.nix7
1 files changed, 1 insertions, 6 deletions
diff --git a/nixos/modules/system/boot/systemd.nix b/nixos/modules/system/boot/systemd.nix
index 476ff5fdd2b9b..f6c734f47a90d 100644
--- a/nixos/modules/system/boot/systemd.nix
+++ b/nixos/modules/system/boot/systemd.nix
@@ -179,12 +179,7 @@ in
 
   options.systemd = {
 
-    package = mkOption {
-      default = pkgs.systemd;
-      defaultText = literalExpression "pkgs.systemd";
-      type = types.package;
-      description = lib.mdDoc "The systemd package.";
-    };
+    package = mkPackageOption pkgs "systemd" {};
 
     units = mkOption {
       description = "Definition of systemd units.";