lol

nixos/drbd: fix

- fix environment.etc."drbd.conf"
- don't generate an ExecStart script for just one command

authored by

Ryan Mulligan and committed by
Astro
aa37441c 036b9094

+5 -7
+5 -7
nixos/modules/services/network-filesystems/drbd.nix
··· 47 47 options drbd usermode_helper=/run/current-system/sw/bin/drbdadm 48 48 ''; 49 49 50 - environment.etc.drbd.conf = 50 + environment.etc."drbd.conf" = 51 51 { source = pkgs.writeText "drbd.conf" cfg.config; }; 52 52 53 53 systemd.services.drbd = { 54 54 after = [ "systemd-udev.settle.service" "network.target" ]; 55 55 wants = [ "systemd-udev.settle.service" ]; 56 56 wantedBy = [ "multi-user.target" ]; 57 - script = '' 58 - ${pkgs.drbd}/sbin/drbdadm up all 59 - ''; 60 - serviceConfig.ExecStop = '' 61 - ${pkgs.drbd}/sbin/drbdadm down all 62 - ''; 57 + serviceConfig = { 58 + ExecStart = "${pkgs.drbd}/sbin/drbdadm up all"; 59 + ExecStop = "${pkgs.drbd}/sbin/drbdadm down all"; 60 + }; 63 61 }; 64 62 }; 65 63 }