summary refs log tree commit diff
path: root/nixos/modules/services/cluster/hadoop
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/modules/services/cluster/hadoop')
-rw-r--r--nixos/modules/services/cluster/hadoop/default.nix6
-rw-r--r--nixos/modules/services/cluster/hadoop/hdfs.nix2
-rw-r--r--nixos/modules/services/cluster/hadoop/yarn.nix2
3 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/cluster/hadoop/default.nix b/nixos/modules/services/cluster/hadoop/default.nix
index 53c13fd0603..240938f0d62 100644
--- a/nixos/modules/services/cluster/hadoop/default.nix
+++ b/nixos/modules/services/cluster/hadoop/default.nix
@@ -52,9 +52,9 @@ with lib;
 
 
   config = mkMerge [
-    (mkIf (builtins.hasAttr "yarn" config.users.extraUsers ||
-           builtins.hasAttr "hdfs" config.users.extraUsers ) {
-      users.extraGroups.hadoop = {
+    (mkIf (builtins.hasAttr "yarn" config.users.users ||
+           builtins.hasAttr "hdfs" config.users.users) {
+      users.groups.hadoop = {
         gid = config.ids.gids.hadoop;
       };
     })
diff --git a/nixos/modules/services/cluster/hadoop/hdfs.nix b/nixos/modules/services/cluster/hadoop/hdfs.nix
index 48020e6139c..a38b6a78d3a 100644
--- a/nixos/modules/services/cluster/hadoop/hdfs.nix
+++ b/nixos/modules/services/cluster/hadoop/hdfs.nix
@@ -62,7 +62,7 @@ with lib;
     (mkIf (
         cfg.hdfs.namenode.enabled || cfg.hdfs.datanode.enabled
     ) {
-      users.extraUsers.hdfs = {
+      users.users.hdfs = {
         description = "Hadoop HDFS user";
         group = "hadoop";
         uid = config.ids.uids.hdfs;
diff --git a/nixos/modules/services/cluster/hadoop/yarn.nix b/nixos/modules/services/cluster/hadoop/yarn.nix
index ce5b04a331c..5345a2732d7 100644
--- a/nixos/modules/services/cluster/hadoop/yarn.nix
+++ b/nixos/modules/services/cluster/hadoop/yarn.nix
@@ -27,7 +27,7 @@ with lib;
         cfg.yarn.resourcemanager.enabled || cfg.yarn.nodemanager.enabled
     ) {
 
-      users.extraUsers.yarn = {
+      users.users.yarn = {
         description = "Hadoop YARN user";
         group = "hadoop";
         uid = config.ids.uids.yarn;