diff options
Diffstat (limited to 'modules/security/enteauth/default.nix')
| -rw-r--r-- | modules/security/enteauth/default.nix | 34 |
1 files changed, 1 insertions, 33 deletions
diff --git a/modules/security/enteauth/default.nix b/modules/security/enteauth/default.nix index a883d1a..d2c8a1d 100644 --- a/modules/security/enteauth/default.nix +++ b/modules/security/enteauth/default.nix @@ -5,30 +5,12 @@ pkgs, ... }: -let - enteAuthWithKeyring = pkgs.symlinkJoin { - name = "ente-auth-wrapped"; - paths = [ pkgs.ente-auth ]; - buildInputs = [ pkgs.makeWrapper ]; - postBuild = '' - wrapProgram $out/bin/enteauth \ - --prefix PATH : ${ - lib.makeBinPath [ - pkgs.gnome-keyring - pkgs.dbus - ] - } \ - --run "echo 'password' | ${pkgs.gnome-keyring}/bin/gnome-keyring-daemon --unlock --components=secrets" - - ''; - }; -in { options.security.enteauth = { enable = lib.mkEnableOption "Enables wrapped ente-auth with automated keyring unlocks and a desktop entry."; package = lib.mkOption { type = lib.types.package; - default = enteAuthWithKeyring; + default = pkgs.ente-auth; description = "The customized version of ente-auth with a self-unlocking daemon backend."; }; }; @@ -36,20 +18,6 @@ in config = lib.mkIf config.security.enteauth.enable { home.packages = [ config.security.enteauth.package ]; - xdg.desktopEntries."enteauth" = { - name = "Ente Auth"; - exec = "enteauth"; - icon = "io.ente.auth"; - comment = "End-to-end encrypted 2FA authenticator"; - genericName = "2FA Authenticator"; - categories = [ - "Utility" - "Security" - ]; - terminal = false; - type = "Application"; - }; - xdg.mimeApps.defaultApplications = { "x-scheme-handler/enteauth" = "enteauth.desktop"; }; |
