From 0ff450138f40b287836295ba44e64d92a2dc57bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sun, 18 Oct 2020 14:01:57 +0200 Subject: [PATCH] feat: get rid of google drive --- configs/cloud.nix | 5 ----- modules/default.nix | 1 - modules/google-drive.nix | 25 ------------------------- 3 files changed, 31 deletions(-) delete mode 100644 modules/google-drive.nix diff --git a/configs/cloud.nix b/configs/cloud.nix index f86fd5d..5951cd0 100644 --- a/configs/cloud.nix +++ b/configs/cloud.nix @@ -1,17 +1,12 @@ { config, lib, pkgs, ... }: { imports = [ - ]; niveum = { dropbox.enable = true; seafile.enable = true; - google-drive = { - enable = true; - directory = "${config.users.users.me.home}/cloud/google"; - }; }; system.activationScripts.home-symlinks = '' diff --git a/modules/default.nix b/modules/default.nix index 15d40ba..27264a9 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -2,7 +2,6 @@ imports = [ ./constants.nix ./dropbox.nix - ./google-drive.nix ./retiolum.nix ./seafile.nix ]; diff --git a/modules/google-drive.nix b/modules/google-drive.nix deleted file mode 100644 index a657d9b..0000000 --- a/modules/google-drive.nix +++ /dev/null @@ -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; - }; - }; - }; - -}