WIP: rewrite config #618

Draft
darkkirb wants to merge 345 commits from rewrite into main
4 changed files with 42 additions and 0 deletions
Showing only changes of commit bffbaef004 - Show all commits

View file

@ -3,6 +3,7 @@ _: {
./shell
./editors
./ssh
./desktop
];
home-manager.users.root.imports = [
./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
];
}