From a4fc3d9b3bed2bdda4c52645547b4e33826d5e87 Mon Sep 17 00:00:00 2001 From: beatzaplenty Date: Tue, 22 Jul 2025 13:31:05 +1000 Subject: [PATCH] modified: flake.nix --- flake.nix | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index cb9ebd2..37468e3 100644 --- a/flake.nix +++ b/flake.nix @@ -8,6 +8,10 @@ url = "github:nix-community/home-manager"; inputs.nixpkgs.follows = "nixpkgs"; }; + firefox-webapp = { + url = "github:TLATER/dotfiles"; + # optional: specify a ref/branch if needed + }; }; outputs = { self, nixpkgs, nixos-conf-editor, home-manager, ... } @ inputs: @@ -16,7 +20,34 @@ access-tokens = [ "github.com=***REMOVED***" ]; - }; + }; + homeConfigurations = { + myUser = home-manager.lib.homeManagerConfiguration { + inherit pkgs; + modules = [ + firefox-webapp.home-modules.firefox-webapp + ]; + configuration = { config, pkgs, ... }: { + programs.firefox.enable = true; + graphical.webapps = { + discord = { + url = "https://discord.com/app"; + profile = "webapp_discord"; + iconUrl = "https://discord.com/assets/icon.png"; + name = "Discord Web"; + windowClass = "DiscordWebApp"; + }; + telegram = { + url = "https://web.telegram.org"; + profile = "webapp_telegram"; + iconUrl = "https://telegram.org/img/t_logo.png"; + name = "Telegram Web"; + windowClass = "TelegramWebApp"; + }; + }; + }; + }; + }; nixosConfigurations = { # automatically use each host folder by name nixos = nixpkgs.lib.nixosSystem {