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