about summary refs log tree commit diff
path: root/modules/common/subversion.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-04-21 02:15:42 +0300
committerAzat Bahawi <azat@bahawi.net>2024-04-21 02:15:42 +0300
commite6ed60548397627bf10f561f9438201dbba0a36e (patch)
treef9a84c5957d2cc4fcd148065ee9365a0c851ae1c /modules/common/subversion.nix
parent2024-04-18 (diff)
2024-04-21
Diffstat (limited to 'modules/common/subversion.nix')
-rw-r--r--modules/common/subversion.nix55
1 files changed, 0 insertions, 55 deletions
diff --git a/modules/common/subversion.nix b/modules/common/subversion.nix
deleted file mode 100644
index 9398592..0000000
--- a/modules/common/subversion.nix
+++ /dev/null
@@ -1,55 +0,0 @@
-{
-  config,
-  lib,
-  pkgs,
-  ...
-}:
-with lib;
-let
-  cfg = config.nixfiles.modules.subversion;
-in
-{
-  options.nixfiles.modules.subversion.enable = mkEnableOption "Subversion";
-
-  config = mkIf cfg.enable {
-    nixfiles.modules.gnupg.enable = true;
-
-    hm.home = {
-      file = {
-        ".subversion/config".text = generators.toINI { } {
-          auth = {
-            password-stores = "gpg-agent";
-            ssl-client-cert-file-prompt = "no";
-            store-passwords = "yes";
-            store-auth-creds = "yes";
-          };
-          helpers = {
-            editor-cmd = getExe config.programs.vim.package;
-            diff-cmd = getExe pkgs.colordiff;
-          };
-          miscellany = {
-            global-ignores =
-              with config.hm.programs.git;
-              optionalString (ignores != [ ]) (concatStringsSep " " ignores);
-            diff-ignore-content-type = "no";
-          };
-          working-copy = {
-            exclusive-locking-clients = "svn";
-            exclusive-locking = true;
-            busy-timeout = 10000;
-          };
-        };
-
-        ".subversion/servers".text = generators.toINI { } {
-          global = {
-            store-auth-creds = "yes";
-            store-passwords = "yes";
-            store-plaintext-passwords = "yes";
-          };
-        };
-      };
-
-      packages = [ (pkgs.subversionClient.override { saslSupport = true; }) ];
-    };
-  };
-}

Consider giving Nix/NixOS a try! <3