aboutsummaryrefslogtreecommitdiffstats
path: root/modules/security
diff options
context:
space:
mode:
Diffstat (limited to 'modules/security')
-rw-r--r--modules/security/enteauth/default.nix31
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";
};