Add browser variable for easy switching

This commit is contained in:
Tyler Kelley 2024-01-16 17:06:03 -06:00
parent a6c82e0b01
commit 6ed3deedfd
3 changed files with 69 additions and 66 deletions

View File

@ -1,4 +1,4 @@
{ pkgs, config, ... }:
{ pkgs, config, browser, ... }:
{
home.file.".config/hypr/hyprland.conf".text = ''
@ -83,8 +83,8 @@ bind = , XF86MonBrightnessUp, exec, brightnessctl set +5%
bind = $mainMod, Return, exec, kitty
bind = $mainMod SHIFT, Return, exec, rofi -show drun
bind = $mainMod SHIFT, W, exec, kitty -e amfora
bind = $mainMod SHIFT, S, exec, wallsetter
bind = $mainMod, W, exec, firefox
bind = $mainMod SHIFT, S, exec, web-search
bind = $mainMod, W, exec, ${browser}
bind = $mainMod, E, exec, emopicker9000
bind = $mainMod, S, exec, grim -g "$(slurp)"
bind = $mainMod, D, exec, discord

View File

@ -21,6 +21,7 @@
theLocale = "en_US.UTF-8";
theTimezone = "America/Chicago";
theme = "gigavolt";
browser= pkgs.firefox;
pkgs = import nixpkgs {
inherit system;
@ -39,6 +40,7 @@
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = { inherit username;
inherit gitUsername; inherit gitEmail; inherit theme;
inherit browser;
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
};
home-manager.useGlobalPkgs = true;
@ -56,6 +58,7 @@
home-manager.nixosModules.home-manager {
home-manager.extraSpecialArgs = { inherit username;
inherit gitUsername; inherit gitEmail; inherit inputs; inherit theme;
inherit browser;
inherit (inputs.nix-colors.lib-contrib {inherit pkgs;}) gtkThemeFromScheme;
};
home-manager.useGlobalPkgs = true;

View File

@ -1,6 +1,6 @@
{ config, pkgs, inputs, username,
gitUsername, gitEmail, gtkThemeFromScheme,
theme, ... }:
theme, browser, ... }:
{
# Home Manager Settings
@ -54,7 +54,7 @@
# Install Packages For The User
home.packages = with pkgs; [
neofetch lolcat cmatrix discord firefox htop btop libvirt
"${browser}" neofetch lolcat cmatrix discord htop btop libvirt
swww polkit_gnome grim slurp lm_sensors unzip unrar gnome.file-roller
libnotify swaynotificationcenter rofi-wayland imv v4l-utils
ydotool wl-clipboard socat cowsay lsd pkg-config transmission-gtk mpv