Home: Disable Firefox for Android.

This commit is contained in:
Dmitry Voronin 2024-10-24 09:30:46 +03:00
parent a4a08dc7ef
commit db9d6d82dc
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 38 additions and 19 deletions

View file

@ -17,6 +17,7 @@ let
stylix = import <config/Stylix.nix> args;
android = import ./android args;
package = import <package> args;
programs = import ./program args;
in
# homePath = "/data/data/com.termux.nix/files/home";
{
@ -41,7 +42,7 @@ in
sessionVariables = import ./variable args;
stateVersion = const.droidStateVersion;
};
programs = import ./program args;
programs = with programs; core;
};
};
}

View file

@ -11,6 +11,7 @@ with lib;
let
cfg = config.home.hm;
package = import <package> args;
programs = import ./program args;
in
{
options = {
@ -50,13 +51,18 @@ in
sessionVariables = import ./variable args;
};
xdg = import ./xdg { inherit (cfg) homeDirectory; };
programs = import ./program args;
programs = with programs; core;
dconf.settings = util.catSet (util.ls ./config/dconf) args;
}
(mkIf cfg.package.common.enable { home.packages = package.common; })
(mkIf cfg.package.core.enable { home.packages = package.core; })
(mkIf cfg.package.creative.enable { home.packages = package.creative; })
(mkIf cfg.package.desktop.enable { home.packages = package.desktop; })
(mkIf cfg.package.desktop.enable {
home = {
packages = package.desktop;
programs = programs.desktop;
};
})
(mkIf cfg.package.dev.enable { home.packages = package.dev; })
(mkIf cfg.package.extra.enable { home.packages = package.extra; })
(mkIf cfg.package.gaming.enable { home.packages = package.gaming; })

View file

@ -10,6 +10,7 @@
with lib;
let
cfg = config.home.nixos;
programs = import ./program args;
in
{
imports = (util.ls ./user);
@ -41,7 +42,7 @@ in
extraActivationPath = with pkgs; [ openssh ];
};
xdg = import ./xdg { inherit (user) homeDirectory; };
programs = import ./program args;
programs = with programs; core // desktop;
dconf.settings = util.catSet (util.ls ./config/dconf) args;
};
}

View file

@ -1,24 +1,33 @@
{ secret, ... }@args:
{
secret,
lib,
config,
...
}@args:
let
bash = import ./bash args;
in
{
home-manager.enable = true;
core = {
home-manager.enable = true;
gpg = {
enable = true;
inherit (secret.crypto) publicKeys;
mutableKeys = true;
mutableTrust = true;
settings = {
keyserver = "hkps://keys.openpgp.org";
gpg = {
enable = true;
inherit (secret.crypto) publicKeys;
mutableKeys = true;
mutableTrust = true;
settings = {
keyserver = "hkps://keys.openpgp.org";
};
};
bash = {
enable = true;
initExtra = bash.bashrc;
};
};
firefox = import ./firefox args;
bash = {
enable = true;
initExtra = bash.bashrc;
desktop = {
firefox = import ./firefox args;
};
}

View file

@ -21,7 +21,9 @@ let
(mkSearchEngine "no" "NixOS Options" "https://search.nixos.org/options?query={searchTerms}")
(mkSearchEngine "np" "NixOS Packages" "https://search.nixos.org/packages?query={searchTerms}")
(mkSearchEngine "so" "Stack Overflow" "https://stackoverflow.com/search?tab=votes&q={searchTerms}")
(mkSearchEngine "hm" "Home Manager" "https://home-manager-options.extranix.com/?query={searchTerms}")
(mkSearchEngine "hm" "Home Manager"
"https://home-manager-options.extranix.com/?query={searchTerms}"
)
];
extensions = {