diff --git a/flake.nix b/flake.nix index b8d24de..b2192a1 100644 --- a/flake.nix +++ b/flake.nix @@ -8,39 +8,17 @@ 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, firefox-webapp, ... } @ inputs: + outputs = { self, nixpkgs, nixos-conf-editor, home-manager, ... } @ inputs: let system = "x86_64-linux"; in { nixConfig = { access-tokens = [ "github.com=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" ]; }; - homeConfigurations = { - nixos = home-manager.lib.homeManagerConfiguration { - inherit nixpkgs; - - extraSpecialArgs = inputs; - - modules = [ - inputs.firefox-webapp.home-modules.firefox-webapp - ./hosts/nixos/home.nix # this file will now receive inputs - ]; - - configuration = { config, pkgs, ... }: { - programs.firefox.enable = true; - graphical.enable = true; - graphical.webapps = { - # You can also define webapps here if you prefer - }; - }; - }; -}; + nixosConfigurations = { # automatically use each host folder by name nixos = nixpkgs.lib.nixosSystem { diff --git a/hosts/nixos/home.nix b/hosts/nixos/home.nix index 6b1b11d..6979a39 100644 --- a/hosts/nixos/home.nix +++ b/hosts/nixos/home.nix @@ -1,10 +1,9 @@ -{ config, pkgs, lib, inputs, ... }: +{ config, pkgs, lib, ... }: { imports = [ ../../common/aliases.nix - inputs.firefox-webapp.home-modules.firefox-webapp ]; home.username = "nixos"; # your actual username @@ -35,22 +34,5 @@ startInBackground = true; }; programs.firefox.enable = true; - graphical.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"; - }; - }; } \ No newline at end of file