about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSander van der Burg <svanderburg@gmail.com>2018-08-03 22:01:56 +0200
committerSander van der Burg <svanderburg@gmail.com>2018-08-03 22:01:56 +0200
commit5c897b4effc4f51b2d6aa5dba158a839b179d964 (patch)
tree7b61c93b198f474935b50dd58979c378e47d683d
parentc9f3382a39c8453ed5e1dccdba4ca486eae7a29e (diff)
downloadnixlib-5c897b4effc4f51b2d6aa5dba158a839b179d964.tar
nixlib-5c897b4effc4f51b2d6aa5dba158a839b179d964.tar.gz
nixlib-5c897b4effc4f51b2d6aa5dba158a839b179d964.tar.bz2
nixlib-5c897b4effc4f51b2d6aa5dba158a839b179d964.tar.lz
nixlib-5c897b4effc4f51b2d6aa5dba158a839b179d964.tar.xz
nixlib-5c897b4effc4f51b2d6aa5dba158a839b179d964.tar.zst
nixlib-5c897b4effc4f51b2d6aa5dba158a839b179d964.zip
nixos/disnix: fix broken service because of rename
-rw-r--r--nixos/modules/services/misc/disnix.nix2
-rw-r--r--nixos/modules/services/misc/dysnomia.nix10
2 files changed, 6 insertions, 6 deletions
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 = {};
     }