diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-02-02 08:51:02 -0800 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-02-02 08:53:16 -0800 |
| commit | 16545ae411aa886e94be0deaae79e07f39b9adfb (patch) | |
| tree | 890d35ae99c9aa397d34baf4607853760f5098dd /flake | |
| parent | run CI commands in a nix shell (diff) | |
| download | infra-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.lock | 37 | ||||
| -rw-r--r-- | flake.nix | 7 | ||||
| -rw-r--r-- | flake/hosts.nix | 13 |
3 files changed, 55 insertions, 2 deletions
@@ -39,6 +39,26 @@ "type": "github" } }, + "firefox-darwin": { + "inputs": { + "nixpkgs": [ + "nixpkgs" + ] + }, + "locked": { + "lastModified": 1706834474, + "narHash": "sha256-C5jaUZAx9Y04LwLdMk8QqA6Qw4Oe8MugPajjxJxInvs=", + "owner": "bandithedoge", + "repo": "nixpkgs-firefox-darwin", + "rev": "61c35a7992e8a540571ae21459f1c6b1c084a773", + "type": "github" + }, + "original": { + "owner": "bandithedoge", + "repo": "nixpkgs-firefox-darwin", + "type": "github" + } + }, "flake-compat": { "flake": false, "locked": { @@ -235,6 +255,21 @@ "type": "github" } }, + "nur": { + "locked": { + "lastModified": 1706841886, + "narHash": "sha256-gT98Myel/I4COZqwaYKs8HiaPYmPdL0i6uKsIJyCBpA=", + "owner": "nix-community", + "repo": "NUR", + "rev": "55de3834d91a4fe68ba2b54253827546d20de133", + "type": "github" + }, + "original": { + "owner": "nix-community", + "repo": "NUR", + "type": "github" + } + }, "pre-commit-hooks": { "inputs": { "flake-compat": "flake-compat", @@ -263,10 +298,12 @@ "inputs": { "darwin": "darwin", "devshell": "devshell", + "firefox-darwin": "firefox-darwin", "flake-parts": "flake-parts", "futils": "futils", "home-manager": "home-manager", "nixpkgs": "nixpkgs_2", + "nur": "nur", "pre-commit-hooks": "pre-commit-hooks", "treefmt-nix": "treefmt-nix" } @@ -19,6 +19,13 @@ inputs.nixpkgs.follows = "nixpkgs"; }; + firefox-darwin = { + url = "github:bandithedoge/nixpkgs-firefox-darwin"; + inputs.nixpkgs.follows = "nixpkgs"; + }; + + nur = { url = "github:nix-community/NUR"; }; + pre-commit-hooks = { url = "github:cachix/pre-commit-hooks.nix"; inputs.nixpkgs.follows = "nixpkgs"; 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 |
