21 lines
480 B
Nix
21 lines
480 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.samfelag.modules.app.firefox;
|
|
i3Cfg = config.samfelag.modules.desktop.i3;
|
|
in
|
|
{
|
|
options.samfelag.modules.app.firefox = {
|
|
enable = lib.mkEnableOption "firefox";
|
|
};
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
firefox
|
|
];
|
|
|
|
samfelag.modules.desktop.i3.extraKeybindings = lib.mkIf i3Cfg.enable {
|
|
"${i3Cfg.mod}+Control+3" = "exec ${pkgs.firefox}/bin/firefox";
|
|
};
|
|
};
|
|
}
|