Empty systemd service file is created

For some reason created service file for service declarated in nix config is empty in /etc/systemd/user/

systemd.user.services.google-drive = {
    enable = true;
    after = [
      "network.target"
    ];
    serviceConfig = {
      ExecStart = "google-drive-ocamlfuse /home/user/Google\ Drive";
      ExecStop = "fusermount - u /home/user/Google\ Drive";
      Restart = "always";
      Type = "forking";
    };
    wantedBy = [ "multi-user.target" ];
    aliases = [
      "google-drive.service"
    ];
};

Actually, i am trying to implement these lines

[Unit]
Description=FUSE filesystem over Google Drive
After=network.target

[Service]
User=dan
Group=dan
ExecStart=google-drive-ocamlfuse /home/user/Google\ Drive
ExecStop=fusermount - u /home/user/Google\ Drive
Restart=always
Type=forking

[Install]
WantedBy=multi-user.target
Alias=google-drive.service
    aliases = [
      "google-drive.service"
    ];

results in /etc/systemd/user/google-drive.service being a symlink to itself.

1 Like