mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-07 12:19:07 +00:00
users/foo-dogsquared: refactor browser configuration
This commit is contained in:
parent
bdeccc3c08
commit
4ebaca7a13
@ -1,6 +1,8 @@
|
|||||||
# WHOA! Even browsers with extensions can be declarative!
|
# WHOA! Even browsers with extensions can be declarative!
|
||||||
{ config, lib, pkgs, osConfig ? { }, ... }:
|
{ config, lib, pkgs, osConfig ? { }, ... }:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkMerge [
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
google-chrome-dev
|
google-chrome-dev
|
||||||
@ -31,9 +33,11 @@
|
|||||||
{ id = "nglaklhklhcoonedhgnpgddginnjdadi"; } # ActivityWatch Web Watcher
|
{ id = "nglaklhklhcoonedhgnpgddginnjdadi"; } # ActivityWatch Web Watcher
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
(lib.mkIf (osConfig ? programs.firefox.enable -> !osConfig.programs.firefox.enable) {
|
||||||
# Despite the name, it isn't a browser for furries.
|
# Despite the name, it isn't a browser for furries.
|
||||||
programs.firefox = lib.mkIf (osConfig ? programs.firefox.enable -> !osConfig.programs.firefox.enable) {
|
programs.firefox = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
package = with pkgs; wrapFirefox firefox-unwrapped {
|
package = with pkgs; wrapFirefox firefox-unwrapped {
|
||||||
@ -176,4 +180,6 @@
|
|||||||
|
|
||||||
# Configuring Tridactyl.
|
# Configuring Tridactyl.
|
||||||
xdg.configFile.tridactyl.source = ../config/tridactyl;
|
xdg.configFile.tridactyl.source = ../config/tridactyl;
|
||||||
|
})
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user