about summary refs log tree commit diff
path: root/nixos/modules/tasks
diff options
context:
space:
mode:
authordanbst <abcz2.uprola@gmail.com>2019-08-18 18:00:25 +0300
committerdanbst <abcz2.uprola@gmail.com>2019-08-18 18:00:25 +0300
commitd80cd26ff981f1c4be96b82757811b21f280f1a6 (patch)
tree28375ed14a49fe86c03ef21868833faa23b56215 /nixos/modules/tasks
parent29ba0a0adff274f5ea0d93246be3f2957d234a7b (diff)
parent2ca09a94be5182c8f8cc688eaded558d827312f1 (diff)
downloadnixlib-d80cd26ff981f1c4be96b82757811b21f280f1a6.tar
nixlib-d80cd26ff981f1c4be96b82757811b21f280f1a6.tar.gz
nixlib-d80cd26ff981f1c4be96b82757811b21f280f1a6.tar.bz2
nixlib-d80cd26ff981f1c4be96b82757811b21f280f1a6.tar.lz
nixlib-d80cd26ff981f1c4be96b82757811b21f280f1a6.tar.xz
nixlib-d80cd26ff981f1c4be96b82757811b21f280f1a6.tar.zst
nixlib-d80cd26ff981f1c4be96b82757811b21f280f1a6.zip
Merge branch 'master' into flip-map-foreach
Diffstat (limited to 'nixos/modules/tasks')
-rw-r--r--nixos/modules/tasks/filesystems/nfs.nix1
-rw-r--r--nixos/modules/tasks/swraid.nix43
2 files changed, 2 insertions, 42 deletions
diff --git a/nixos/modules/tasks/filesystems/nfs.nix b/nixos/modules/tasks/filesystems/nfs.nix
index d3a558738f4b..e0e8bb1f03de 100644
--- a/nixos/modules/tasks/filesystems/nfs.nix
+++ b/nixos/modules/tasks/filesystems/nfs.nix
@@ -56,7 +56,6 @@ in
     boot.initrd.kernelModules = mkIf inInitrd [ "nfs" ];
 
     systemd.packages = [ pkgs.nfs-utils ];
-    systemd.generator-packages = [ pkgs.nfs-utils ];
 
     environment.etc = {
       "idmapd.conf".source = idmapdConfFile;
diff --git a/nixos/modules/tasks/swraid.nix b/nixos/modules/tasks/swraid.nix
index 93e03c44c868..8fa19194bed4 100644
--- a/nixos/modules/tasks/swraid.nix
+++ b/nixos/modules/tasks/swraid.nix
@@ -6,51 +6,12 @@
 
   services.udev.packages = [ pkgs.mdadm ];
 
+  systemd.packages = [ pkgs.mdadm ];
+
   boot.initrd.availableKernelModules = [ "md_mod" "raid0" "raid1" "raid10" "raid456" ];
 
   boot.initrd.extraUdevRulesCommands = ''
     cp -v ${pkgs.mdadm}/lib/udev/rules.d/*.rules $out/
   '';
 
-  systemd.services.mdadm-shutdown = {
-    wantedBy = [ "final.target"];
-    after = [ "umount.target" ];
-
-    unitConfig = {
-      DefaultDependencies = false;
-    };
-
-    serviceConfig = {
-      Type = "oneshot";
-      ExecStart = ''${pkgs.mdadm}/bin/mdadm --wait-clean --scan'';
-    };
-  };
-
-  systemd.services."mdmon@" = {
-    description = "MD Metadata Monitor on /dev/%I";
-
-    unitConfig.DefaultDependencies = false;
-
-    serviceConfig = {
-      Type = "forking";
-      Environment = "IMSM_NO_PLATFORM=1";
-      ExecStart = ''${pkgs.mdadm}/bin/mdmon --offroot --takeover %I'';
-      KillMode = "none";
-    };
-  };
-
-  systemd.services."mdadm-grow-continue@" = {
-    description = "Manage MD Reshape on /dev/%I";
-
-    unitConfig.DefaultDependencies = false;
-
-    serviceConfig = {
-      ExecStart = ''${pkgs.mdadm}/bin/mdadm --grow --continue /dev/%I'';
-      StandardInput = "null";
-      StandardOutput = "null";
-      StandardError = "null";
-      KillMode = "none";
-    };
-  };
- 
 }