diff options
author | Sander van der Burg <svanderburg@gmail.com> | 2018-08-06 01:25:38 +0200 |
---|---|---|
committer | Sander van der Burg <svanderburg@gmail.com> | 2018-08-06 01:25:38 +0200 |
commit | 9748d7c60ba4fd94a5be3d2c5783608e65baea95 (patch) | |
tree | 29a3bb43ecf280379b730c045ecfbc6f7c541081 | |
parent | 56ac23a19c2e77fd96694e6eda80225c364f699c (diff) | |
download | nixlib-9748d7c60ba4fd94a5be3d2c5783608e65baea95.tar nixlib-9748d7c60ba4fd94a5be3d2c5783608e65baea95.tar.gz nixlib-9748d7c60ba4fd94a5be3d2c5783608e65baea95.tar.bz2 nixlib-9748d7c60ba4fd94a5be3d2c5783608e65baea95.tar.lz nixlib-9748d7c60ba4fd94a5be3d2c5783608e65baea95.tar.xz nixlib-9748d7c60ba4fd94a5be3d2c5783608e65baea95.tar.zst nixlib-9748d7c60ba4fd94a5be3d2c5783608e65baea95.zip |
nixos/disnix: undo dysnomia rename to fix disnix and retain compatibility with previous release
-rw-r--r-- | nixos/modules/rename.nix | 1 | ||||
-rw-r--r-- | nixos/modules/services/misc/disnix.nix | 2 | ||||
-rw-r--r-- | nixos/modules/services/misc/dysnomia.nix | 10 |
3 files changed, 6 insertions, 7 deletions
diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix index 40f66ccb26b2..75f02ea78e64 100644 --- a/nixos/modules/rename.nix +++ b/nixos/modules/rename.nix @@ -9,7 +9,6 @@ with lib; (mkRenamedOptionModule [ "system" "nixos" "stateVersion" ] [ "system" "stateVersion" ]) (mkRenamedOptionModule [ "system" "nixos" "defaultChannel" ] [ "system" "defaultChannel" ]) - (mkRenamedOptionModule [ "dysnomia" ] [ "services" "dysnomia" ]) (mkRenamedOptionModule [ "environment" "x11Packages" ] [ "environment" "systemPackages" ]) (mkRenamedOptionModule [ "environment" "enableBashCompletion" ] [ "programs" "bash" "enableCompletion" ]) (mkRenamedOptionModule [ "environment" "nix" ] [ "nix" "package" ]) diff --git a/nixos/modules/services/misc/disnix.nix b/nixos/modules/services/misc/disnix.nix index bb3ac1ecf075..c21cb2afc3ca 100644 --- a/nixos/modules/services/misc/disnix.nix +++ b/nixos/modules/services/misc/disnix.nix @@ -47,7 +47,7 @@ in ###### implementation config = mkIf cfg.enable { - services.dysnomia.enable = true; + dysnomia.enable = true; environment.systemPackages = [ pkgs.disnix ] ++ optional cfg.useWebServiceInterface pkgs.DisnixWebService; diff --git a/nixos/modules/services/misc/dysnomia.nix b/nixos/modules/services/misc/dysnomia.nix index ba74b18b6970..61ea822890ed 100644 --- a/nixos/modules/services/misc/dysnomia.nix +++ b/nixos/modules/services/misc/dysnomia.nix @@ -3,7 +3,7 @@ with lib; let - cfg = config.services.dysnomia; + cfg = config.dysnomia; printProperties = properties: concatMapStrings (propertyName: @@ -69,7 +69,7 @@ let in { options = { - services.dysnomia = { + dysnomia = { enable = mkOption { type = types.bool; @@ -142,7 +142,7 @@ in environment.systemPackages = [ cfg.package ]; - services.dysnomia.package = pkgs.dysnomia.override (origArgs: { + dysnomia.package = pkgs.dysnomia.override (origArgs: { enableApacheWebApplication = config.services.httpd.enable; enableAxis2WebService = config.services.tomcat.axis2.enable; enableEjabberdDump = config.services.ejabberd.enable; @@ -153,7 +153,7 @@ in enableMongoDatabase = config.services.mongodb.enable; }); - services.dysnomia.properties = { + dysnomia.properties = { hostname = config.networking.hostName; inherit (config.nixpkgs.localSystem) system; @@ -171,7 +171,7 @@ in }}"); }; - services.dysnomia.containers = lib.recursiveUpdate ({ + dysnomia.containers = lib.recursiveUpdate ({ process = {}; wrapper = {}; } |