1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat: get rid of google drive

This commit is contained in:
Kierán Meinhardt
2020-10-18 14:01:57 +02:00
parent de761d60c1
commit 0ff450138f
3 changed files with 0 additions and 31 deletions

View File

@@ -2,7 +2,6 @@
imports = [
./constants.nix
./dropbox.nix
./google-drive.nix
./retiolum.nix
./seafile.nix
];

View File

@@ -1,25 +0,0 @@
{ pkgs, config, lib, ... }:
with lib;
let cfg = config.niveum.google-drive;
in {
options.niveum.google-drive = {
enable = mkEnableOption "Google Drive";
directory = mkOption { type = types.path; };
};
config = mkIf cfg.enable {
systemd.user.services.google-drive = {
description = "Google Drive synchronisation service";
after = [ "network.target" ];
wantedBy = [ "default.target" ];
preStart = "mkdir -p ${cfg.directory}";
script = "${pkgs.google-drive-ocamlfuse}/bin/google-drive-ocamlfuse ${cfg.directory}";
preStop = "${pkgs.fuse}/bin/fusermount -u ${cfg.directory}";
serviceConfig = {
Type = "oneshot";
RemainAfterExit = true;
};
};
};
}