diff --git a/home/ltadeu6.nix b/home/ltadeu6.nix index 1cacda6..2b72869 100644 --- a/home/ltadeu6.nix +++ b/home/ltadeu6.nix @@ -152,16 +152,16 @@ "x-scheme-handler/discord-402572971681644545" = [ "discord-402572971681644545.desktop" ]; "application/pdf" = [ "org.gnome.Evince.desktop" ]; "x-scheme-handler/magnet" = [ "userapp-transmission-gtk-B3E3L2.desktop" ]; - "x-scheme-handler/http" = [ "firefox.desktop" ]; - "x-scheme-handler/https" = [ "firefox.desktop" ]; - "x-scheme-handler/chrome" = [ "firefox.desktop" ]; - "text/html" = [ "firefox.desktop" ]; - "application/x-extension-htm" = [ "firefox.desktop" ]; - "application/x-extension-html" = [ "firefox.desktop" ]; - "application/x-extension-shtml" = [ "firefox.desktop" ]; - "application/xhtml+xml" = [ "firefox.desktop" ]; - "application/x-extension-xhtml" = [ "firefox.desktop" ]; - "application/x-extension-xht" = [ "firefox.desktop" ]; + "x-scheme-handler/http" = [ "app.zen_browser.zen.desktop" ]; + "x-scheme-handler/https" = [ "app.zen_browser.zen.desktop" ]; + "x-scheme-handler/chrome" = [ "app.zen_browser.zen.desktop" ]; + "text/html" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-htm" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-html" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-shtml" = [ "app.zen_browser.zen.desktop" ]; + "application/xhtml+xml" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-xhtml" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-xht" = [ "app.zen_browser.zen.desktop" ]; "image/png" = [ "org.gnome.eog.desktop" ]; "image/svg+xml" = [ "org.inkscape.Inkscape.desktop" ]; "image/jpeg" = [ "org.gnome.eog.desktop" ]; @@ -170,16 +170,16 @@ associations.added = { "application/pdf" = [ "org.gnome.Evince.desktop" ]; "x-scheme-handler/magnet" = [ "userapp-transmission-gtk-B3E3L2.desktop" ]; - "x-scheme-handler/http" = [ "firefox.desktop" ]; - "x-scheme-handler/https" = [ "firefox.desktop" ]; - "x-scheme-handler/chrome" = [ "firefox.desktop" ]; - "text/html" = [ "firefox.desktop" ]; - "application/x-extension-htm" = [ "firefox.desktop" ]; - "application/x-extension-html" = [ "firefox.desktop" ]; - "application/x-extension-shtml" = [ "firefox.desktop" ]; - "application/xhtml+xml" = [ "firefox.desktop" ]; - "application/x-extension-xhtml" = [ "firefox.desktop" ]; - "application/x-extension-xht" = [ "firefox.desktop" ]; + "x-scheme-handler/http" = [ "app.zen_browser.zen.desktop" ]; + "x-scheme-handler/https" = [ "app.zen_browser.zen.desktop" ]; + "x-scheme-handler/chrome" = [ "app.zen_browser.zen.desktop" ]; + "text/html" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-htm" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-html" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-shtml" = [ "app.zen_browser.zen.desktop" ]; + "application/xhtml+xml" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-xhtml" = [ "app.zen_browser.zen.desktop" ]; + "application/x-extension-xht" = [ "app.zen_browser.zen.desktop" ]; "image/png" = [ "org.gnome.eog.desktop" ]; "application/x-partial-download" = [ "mpv.desktop" ]; "image/svg+xml" = [ "org.inkscape.Inkscape.desktop" ]; diff --git a/hosts/Nixos/configuration.nix b/hosts/Nixos/configuration.nix index 6f59c5d..c2ac204 100644 --- a/hosts/Nixos/configuration.nix +++ b/hosts/Nixos/configuration.nix @@ -494,6 +494,25 @@ }; }; + systemd.services.flatpak-update = { + description = "Update Flatpak apps"; + serviceConfig = { + Type = "oneshot"; + }; + script = '' + ${pkgs.flatpak}/bin/flatpak update -y --noninteractive + ''; + }; + + systemd.timers.flatpak-update = { + wantedBy = [ "timers.target" ]; + timerConfig = { + OnCalendar = "daily"; + RandomizedDelaySec = "1h"; + Persistent = true; + }; + }; + nix.gc = { automatic = true; dates = "weekly";