From 70688f195a294a09d31d6bfe339bb090d443e949 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Thu, 25 Jan 2024 14:56:56 -0700 Subject: [PATCH] keepassx: remove module This removes the services.keepassx module and all options related to it. This is because KeePassX has been unmaintaned for a long time, and the migration path to KeePassXC is not clear. Note, this package probably hasn't worked for nearly a year since the package was removed from Nixpkgs: https://github.com/NixOS/nixpkgs/pull/216748 Closes #4949 Signed-off-by: Sumner Evans --- modules/modules.nix | 4 +++- modules/services/keepassx.nix | 31 ------------------------------- 2 files changed, 3 insertions(+), 32 deletions(-) delete mode 100644 modules/services/keepassx.nix diff --git a/modules/modules.nix b/modules/modules.nix index d557dc1b3..25f1a0938 100644 --- a/modules/modules.nix +++ b/modules/modules.nix @@ -291,7 +291,6 @@ let ./services/kanshi.nix ./services/kbfs.nix ./services/kdeconnect.nix - ./services/keepassx.nix ./services/keybase.nix ./services/keynav.nix ./services/lieer.nix @@ -383,6 +382,9 @@ let (mkRemovedOptionModule [ "services" "password-store-sync" ] '' Use services.git-sync instead. '') + (mkRemovedOptionModule [ "services" "keepassx" ] '' + KeePassX is no longer maintained. + '') ] ++ optional useNixpkgsModule ./misc/nixpkgs.nix ++ optional (!useNixpkgsModule) ./misc/nixpkgs-disabled.nix; diff --git a/modules/services/keepassx.nix b/modules/services/keepassx.nix deleted file mode 100644 index 7f8582361..000000000 --- a/modules/services/keepassx.nix +++ /dev/null @@ -1,31 +0,0 @@ -{ config, lib, pkgs, ... }: - -with lib; - -{ - meta.maintainers = [ maintainers.rycee ]; - - options = { - services.keepassx = { - enable = mkEnableOption "the KeePassX password manager"; - }; - }; - - config = mkIf config.services.keepassx.enable { - assertions = [ - (hm.assertions.assertPlatform "services.keepassx" pkgs platforms.linux) - ]; - - systemd.user.services.keepassx = { - Unit = { - Description = "KeePassX password manager"; - After = [ "graphical-session-pre.target" ]; - PartOf = [ "graphical-session.target" ]; - }; - - Install = { WantedBy = [ "graphical-session.target" ]; }; - - Service = { ExecStart = "${pkgs.keepassx}/bin/keepassx -min -lock"; }; - }; - }; -}