refactor(nix/floorp): Move profile options to users/
This commit is contained in:
parent
e18aa5042d
commit
7165501955
4 changed files with 28 additions and 18 deletions
|
@ -5,20 +5,9 @@
|
|||
enable = true;
|
||||
# REF: https://github.com/nix-community/home-manager/blob/342a1d682386d3a1d74f9555cb327f2f311dda6e/modules/programs/firefox/mkFirefoxModule.nix#L264
|
||||
package = null; # we only want the config
|
||||
profiles.${vars.name} = {
|
||||
userChrome = builtins.replaceStrings ["/*ZI:VERTICAL-TAB-HOVER-WIDTH-IN-EM*/"] ["${builtins.toString vars.floorp.verticalTabHoverWidthInEm}em"] (builtins.readFile ../../files/floorp/userChrome.css);
|
||||
settings = {
|
||||
"browser.toolbars.bookmarks.visibility" = "newtab";
|
||||
"floorp.browser.sidebar.is.displayed" = false;
|
||||
"floorp.browser.tabbar.settings" = 2;
|
||||
"floorp.browser.tabs.verticaltab" = true;
|
||||
"floorp.verticaltab.hover.enabled" = true;
|
||||
"floorp.tabbar.style" = 2;
|
||||
"network.dns.disableIPv6" = true;
|
||||
"sidebar.position_start" = false;
|
||||
"signon.management.page.breach-alerts.enabled" = false;
|
||||
"signon.rememberSignons" = false;
|
||||
};
|
||||
profiles.${config.home.username} = {
|
||||
id = 0;
|
||||
isDefault = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
@ -31,7 +31,6 @@ in
|
|||
];
|
||||
}
|
||||
) pkgs pkgs-unstable;
|
||||
vars.name = "ziro";
|
||||
vars.floorp.verticalTabHoverWidthInEm = 28;
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
|
@ -53,7 +52,6 @@ in
|
|||
unstable = nixpkgs-unstable;
|
||||
}
|
||||
) system pkgs pkgs-unstable;
|
||||
vars.name = "ziro";
|
||||
in
|
||||
home-manager.lib.homeManagerConfiguration {
|
||||
pkgs = pkgs-unstable; # FIXME: switch to stable when 24.11 become stable
|
||||
|
|
|
@ -1,14 +1,37 @@
|
|||
{ pkgs, pkgs-unstable, config, vars, ... }:
|
||||
|
||||
{
|
||||
home = {
|
||||
let
|
||||
username = "ziro";
|
||||
userChrome = builtins.replaceStrings ["/*ZI:VERTICAL-TAB-HOVER-WIDTH-IN-EM*/"] ["${builtins.toString vars.floorp.verticalTabHoverWidthInEm}em"] (builtins.readFile ../../files/floorp/ziro-userChrome.css);
|
||||
settings = {
|
||||
"browser.toolbars.bookmarks.visibility" = "newtab";
|
||||
"floorp.browser.sidebar.is.displayed" = false;
|
||||
"floorp.browser.tabbar.settings" = 2;
|
||||
"floorp.browser.tabs.verticaltab" = true;
|
||||
"floorp.verticaltab.hover.enabled" = true;
|
||||
"floorp.tabbar.style" = 2;
|
||||
"network.dns.disableIPv6" = true;
|
||||
"sidebar.position_start" = false;
|
||||
"signon.management.page.breach-alerts.enabled" = false;
|
||||
"signon.rememberSignons" = false;
|
||||
};
|
||||
in {
|
||||
home = {
|
||||
inherit username;
|
||||
packages =
|
||||
[
|
||||
pkgs.passff-host
|
||||
];
|
||||
};
|
||||
|
||||
programs.floorp.profiles.${username} = {
|
||||
inherit userChrome settings;
|
||||
};
|
||||
programs.floorp.profiles.null = {
|
||||
id = 1;
|
||||
inherit userChrome settings;
|
||||
};
|
||||
|
||||
xdg.configFile = {
|
||||
"nix/nix.conf".text =
|
||||
''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue