From 01d3c1b3a18b87f980b85e0842f201cccb216060 Mon Sep 17 00:00:00 2001 From: Oliver Davies <oliver@oliverdavies.uk> Date: Wed, 17 Jan 2024 07:36:49 +0000 Subject: [PATCH] Use nixpkgs paths in i3 configuration Fix Firefox not loading when using the keybinding. --- system/nixos/home-manager/modules/i3.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/system/nixos/home-manager/modules/i3.nix b/system/nixos/home-manager/modules/i3.nix index ab9b4718..08bf1f88 100644 --- a/system/nixos/home-manager/modules/i3.nix +++ b/system/nixos/home-manager/modules/i3.nix @@ -1,4 +1,4 @@ -{ config, inputs, self, username, ... }: +{ config, inputs, self, username, pkgs, ... }: let modifier = "Mod4"; @@ -19,7 +19,7 @@ in modifier = modifier; keybindings = inputs.nixpkgs.lib.mkOptionDefault { - "${modifier}+Shift+b" = "exec firefox"; + "${modifier}+Shift+b" = "exec ${pkgs.firefox-devedition}/bin/firefox-devedition"; "${modifier}+Tab" = "workspace back_and_forth"; # Change focus. @@ -59,7 +59,7 @@ in bindswitch --reload --locked lid:on output $laptop disable bindswitch --reload --locked lid:off output $laptop enable - exec --no-startup-id feh --randomize --bg-scale /home/${username}/Pictures/Wallpaper/*; + exec --no-startup-id ${pkgs.feh}/bin/feh --randomize --bg-scale /home/${username}/Pictures/Wallpaper/*; default_border none default_floating_border none