init: public

This commit is contained in:
2025-04-13 15:09:14 +08:00
parent 5995c2050b
commit 50247d94e8
253 changed files with 12964 additions and 567 deletions

View File

@@ -0,0 +1,17 @@
{ config, lib, ... }:
lib.my.makeSwitch {
inherit config;
optionName = "all desktop browsers";
optionPath = [
"desktop"
"browser"
"all"
];
config' = {
my.desktop.browser = {
firefox.enable = true;
librewolf.enable = true;
chromium.enable = true;
};
};
}

View File

@@ -0,0 +1,54 @@
{
config,
lib,
pkgs,
...
}:
lib.my.makeHomeProgramConfig {
inherit config;
programName = "chromium";
optionPath = [
"desktop"
"browser"
"chromium"
];
extraConfig = {
my.home.programs.chromium = {
package = pkgs.ungoogled-chromium;
extensions = [
{
id = "jokpcbcafcbkjgcbjdcbadhfhimkafab"; # BitWarden
}
{
id = "ipgcaebkhediiaeinmmaneoehfjpjkle"; # Dark Reader
}
{
id = "leehfofbonhkmfimcelojmjnccdfemhl"; # New Tab
}
{
id = "padekgcemlokbadohgkifijomclgjgif"; # SwitchyOmega
}
{
id = "bgnkhhnnamicmpeenaelnjfhikgbkllg"; # AdGuard
}
{
id = "ocaahdebbfolfmndjeplogmgcagdmblk"; # Web Store
}
{
id = "pinabllndpmfdcknifcfcmdgdngjcfii"; # Firefox Dark Theme
}
{
id = "bpoadfkcbjbfhfodiogcnhhhpibjhbnh"; # Immersive Translate
}
{
id = "fnaicdffflnofjppbagibeoednhnbjhg"; # Floccus Bookmarks Sync
}
];
commandLineArgs = [
"--ozone-platform=wayland"
"--enable-wayland-ime"
"--wayland-text-input-version=3"
];
};
};
}

View File

@@ -0,0 +1,9 @@
{ ... }:
{
imports = [
./all.nix
./firefox.nix
./librewolf.nix
./chromium.nix
];
}

View File

@@ -0,0 +1,15 @@
{ config, lib, ... }:
lib.my.makeHomeProgramConfig {
inherit config;
programName = "firefox";
optionPath = [
"desktop"
"browser"
"firefox"
];
extraConfig = {
my.persist.homeDirs = [
".mozilla"
];
};
}

View File

@@ -0,0 +1,15 @@
{ config, lib, ... }:
lib.my.makeHomeProgramConfig {
inherit config;
programName = "librewolf";
optionPath = [
"desktop"
"browser"
"librewolf"
];
extraConfig = {
my.persist.homeDirs = [
".librewolf"
];
};
}