add firefox
All checks were successful
Hydra devShells.x86_64-linux.default Hydra build #23874 of nixos-config:pr618:devShells.x86_64-linux.default
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #23927 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #23925 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #23926 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux
Hydra checks.x86_64-linux.containers-default Hydra build #23924 of nixos-config:pr618:checks.x86_64-linux.containers-default

This commit is contained in:
Charlotte 🦝 Delenk 2024-11-06 10:50:59 +01:00
parent e919dc8265
commit bffbaef004
4 changed files with 42 additions and 0 deletions

View file

@ -3,6 +3,7 @@ _: {
./shell ./shell
./editors ./editors
./ssh ./ssh
./desktop
]; ];
home-manager.users.root.imports = [ home-manager.users.root.imports = [
./home-manager.nix ./home-manager.nix

View file

@ -0,0 +1,5 @@
{config, ...}: {
home-manager.users.darkkirb.imports = mkIf config.isGraphical [
./home-manager.nix
];
}

View file

@ -0,0 +1,31 @@
{
pkgs,
config,
...
}: {
programs.firefox = {
enable = true;
profiles.default = {
containersForce = true;
extensions = []; # TODO
path = "${config.xdg.dataHome}/mozilla/default";
settings = {
"extensions.autoDisableScopes" = 0;
};
userChrome = ''
#main-window #titlebar {
overflow: hidden;
transition: height 0.3s 0.3s !important;
}
/* Default state: Set initial height to enable animation */
#main-window #titlebar { height: 3em !important; }
#main-window[uidensity="touch"] #titlebar { height: 3.35em !important; }
#main-window[uidensity="compact"] #titlebar { height: 2.7em !important; }
/* Hidden state: Hide native tabs strip */
#main-window[titlepreface*=""] #titlebar { height: 0 !important; }
/* Hidden state: Fix z-index of active pinned tabs */
#main-window[titlepreface*=""] #tabbrowser-tabs { z-index: 0 !important; }
'';
};
};
}

View file

@ -0,0 +1,5 @@
_: {
imports = [
./firefox
];
}