aboutsummaryrefslogtreecommitdiff
path: root/flake/hosts.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-02-02 08:51:02 -0800
committerFranck Cuny <franck@fcuny.net>2024-02-02 08:53:16 -0800
commit16545ae411aa886e94be0deaae79e07f39b9adfb (patch)
tree890d35ae99c9aa397d34baf4607853760f5098dd /flake/hosts.nix
parentrun CI commands in a nix shell (diff)
downloadinfra-16545ae411aa886e94be0deaae79e07f39b9adfb.tar.gz
install firefox
The firefox packages for darwin are broken. `bandithedoge/nixpkgs-firefox-darwin` provides an overlay to install the package on darwin. Add some specific configurations to make firefox work as I want out of the box. We also add NUR to install some firefox extensions (ublock, 1password).
Diffstat (limited to '')
-rw-r--r--flake/hosts.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/flake/hosts.nix b/flake/hosts.nix
index 9ec9d1b..7fc0612 100644
--- a/flake/hosts.nix
+++ b/flake/hosts.nix
@@ -1,12 +1,21 @@
{ inputs, ... }:
let
- inherit (inputs) nixpkgs darwin home-manager;
+ inherit (inputs) nixpkgs darwin home-manager firefox-darwin nur;
inherit (nixpkgs.lib) mkMerge;
mkDarwinConfig = system: path:
darwin.lib.darwinSystem {
inherit system;
- modules = [ home-manager.darwinModule path ];
+ modules = [
+ home-manager.darwinModule
+ path
+ {
+ nixpkgs.overlays = [
+ firefox-darwin.overlay
+ nur.overlay
+ ];
+ }
+ ];
specialArgs = { inherit inputs; };
};
in