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

View file

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

View file

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

View file

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

View file

@ -21,7 +21,9 @@ let
(mkSearchEngine "no" "NixOS Options" "https://search.nixos.org/options?query={searchTerms}") (mkSearchEngine "no" "NixOS Options" "https://search.nixos.org/options?query={searchTerms}")
(mkSearchEngine "np" "NixOS Packages" "https://search.nixos.org/packages?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 "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 = { extensions = {