diff options
| author | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-26 12:25:13 +0530 |
|---|---|---|
| committer | Arpit Chakladar <arpitchakladar+git@gmail.com> | 2026-07-26 12:25:13 +0530 |
| commit | d8d4727e9b6417948f21376e8293c755fa10c0f1 (patch) | |
| tree | 94e385f2bcc9535bd867d1f861222249a7dbe25c /modules/security/enteauth/default.nix | |
| parent | 76e8ba8527b9300ba3b15f18dc6b683e56a9dc47 (diff) | |
| download | home-manager-config-d8d4727e9b6417948f21376e8293c755fa10c0f1.tar.gz home-manager-config-d8d4727e9b6417948f21376e8293c755fa10c0f1.zip | |
feat: using xdg.desktopEntries inplace of lib.makeDesktopItem
Diffstat (limited to 'modules/security/enteauth/default.nix')
| -rw-r--r-- | modules/security/enteauth/default.nix | 31 |
1 files changed, 14 insertions, 17 deletions
diff --git a/modules/security/enteauth/default.nix b/modules/security/enteauth/default.nix index 064f697..a883d1a 100644 --- a/modules/security/enteauth/default.nix +++ b/modules/security/enteauth/default.nix @@ -20,25 +20,8 @@ let } \ --run "echo 'password' | ${pkgs.gnome-keyring}/bin/gnome-keyring-daemon --unlock --components=secrets" - rm -rf $out/share/applications/* - - ln -s ${customDesktopItem}/share/applications/* $out/share/applications/ ''; }; - - customDesktopItem = pkgs.makeDesktopItem { - name = "enteauth"; - exec = "enteauth"; - icon = "io.ente.auth"; - comment = "End-to-end encrypted 2FA authenticator"; - desktopName = "Ente Auth"; - genericName = "2FA Authenticator"; - categories = [ - "Utility" - "Security" - ]; - terminal = false; - }; in { options.security.enteauth = { @@ -53,6 +36,20 @@ 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"; }; |
