This is the daily auto updated nix version of arkenfox/user.js.
- follow the manual to set up home-manager with flakes
- add flake input
- pass flake input to
extraSpecialArgs
- add settings to Firefox profile(s)
flake.nix
{
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
home-manager = {
url = "github:nix-community/home-manager";
inputs.nixpkgs.follows = "nixpkgs";
};
arkenfox-userjs.url = "github:petrkozorezov/arkenfox-userjs-nix";
};
outputs = inputs@{ nixpkgs, home-manager, ... }: {
homeConfigurations.my-user = home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = { inherit inputs; };
modules = [
{ pkgs, inputs, ... }: {
programs.firefox = {
enable = true;
profiles.myprofile.settings = inputs.arkenfox-userjs.lib.userjs // {
# your overrides here, e.g.
"browser.startup.page" = 3; # restore session
};
};
}
];
};
};
}