Compare commits
2 Commits
66bb85fe03
...
3575914a0e
Author | SHA1 | Date | |
---|---|---|---|
3575914a0e | |||
339292682e |
@ -50,29 +50,6 @@
|
|||||||
toot
|
toot
|
||||||
];
|
];
|
||||||
|
|
||||||
# Install librewolf
|
|
||||||
programs.librewolf = {
|
|
||||||
enable = true;
|
|
||||||
nativeMessagingHosts = with pkgs; [
|
|
||||||
tridactyl-native
|
|
||||||
bukubrow
|
|
||||||
keepassxc
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# This tricks messaging hosts into working for no
|
|
||||||
# real reason other than to make me rage at hour of debugging
|
|
||||||
# (5 hours in total)
|
|
||||||
programs.firefox = {
|
|
||||||
package = pkgs.librewolf;
|
|
||||||
enable = true;
|
|
||||||
nativeMessagingHosts = with pkgs; [
|
|
||||||
tridactyl-native
|
|
||||||
bukubrow
|
|
||||||
keepassxc
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
programs.thunderbird = {
|
programs.thunderbird = {
|
||||||
enable = true;
|
enable = true;
|
||||||
profiles.default.isDefault = true;
|
profiles.default.isDefault = true;
|
||||||
@ -84,17 +61,6 @@
|
|||||||
# Install imv
|
# Install imv
|
||||||
programs.imv.enable = true;
|
programs.imv.enable = true;
|
||||||
|
|
||||||
# Enable theming chromium + use ungoogled chromium package
|
|
||||||
programs.chromium = {
|
|
||||||
enable = true;
|
|
||||||
package = pkgs.ungoogled-chromium;
|
|
||||||
# Fix for wayland
|
|
||||||
commandLineArgs = [
|
|
||||||
"--ozone-platform-hint=auto"
|
|
||||||
"--ozone-platform=wayland"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Enable nix-index
|
# Enable nix-index
|
||||||
programs.nix-index = {
|
programs.nix-index = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
23
modules/home-manager/browsers/chromium.nix
Normal file
23
modules/home-manager/browsers/chromium.nix
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
crony.browsers.chromium.enable = lib.mkEnableOption "Enable chromium";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.crony.browsers.chromium.enable {
|
||||||
|
# Enable theming chromium + use ungoogled chromium package
|
||||||
|
programs.chromium = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.ungoogled-chromium;
|
||||||
|
# Fix for wayland
|
||||||
|
commandLineArgs = [
|
||||||
|
"--ozone-platform-hint=auto"
|
||||||
|
"--ozone-platform=wayland"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
19
modules/home-manager/browsers/default.nix
Normal file
19
modules/home-manager/browsers/default.nix
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
imports = [
|
||||||
|
./librewolf.nix
|
||||||
|
./chromium.nix
|
||||||
|
];
|
||||||
|
|
||||||
|
options = {
|
||||||
|
crony.browsers.enable = lib.mkEnableOption "Enable my browsers and customize them";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.crony.browsers.enable {
|
||||||
|
crony.browsers.librewolf.enable = lib.mkDefault true;
|
||||||
|
crony.browsers.chromium.enable = lib.mkDefault true;
|
||||||
|
};
|
||||||
|
}
|
35
modules/home-manager/browsers/librewolf.nix
Normal file
35
modules/home-manager/browsers/librewolf.nix
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
...
|
||||||
|
}: {
|
||||||
|
options = {
|
||||||
|
crony.browsers.librewolf.enable = lib.mkEnableOption "Enable librewolf and related options";
|
||||||
|
};
|
||||||
|
|
||||||
|
config = lib.mkIf config.crony.browsers.librewolf.enable {
|
||||||
|
# Install librewolf
|
||||||
|
programs.librewolf = {
|
||||||
|
enable = true;
|
||||||
|
nativeMessagingHosts = with pkgs; [
|
||||||
|
tridactyl-native
|
||||||
|
bukubrow
|
||||||
|
keepassxc
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# This tricks messaging hosts into working for no
|
||||||
|
# real reason other than to make me rage at hour of debugging
|
||||||
|
# (5 hours in total)
|
||||||
|
programs.firefox = {
|
||||||
|
package = pkgs.librewolf;
|
||||||
|
enable = true;
|
||||||
|
nativeMessagingHosts = with pkgs; [
|
||||||
|
tridactyl-native
|
||||||
|
bukubrow
|
||||||
|
keepassxc
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
@ -10,6 +10,7 @@
|
|||||||
./nh.nix
|
./nh.nix
|
||||||
./restic.nix
|
./restic.nix
|
||||||
./hyprland.nix
|
./hyprland.nix
|
||||||
|
./browsers
|
||||||
];
|
];
|
||||||
|
|
||||||
crony.mangohud.enable = lib.mkDefault true;
|
crony.mangohud.enable = lib.mkDefault true;
|
||||||
@ -22,4 +23,5 @@
|
|||||||
crony.nh.enable = lib.mkDefault true;
|
crony.nh.enable = lib.mkDefault true;
|
||||||
crony.restic.enable = lib.mkDefault true;
|
crony.restic.enable = lib.mkDefault true;
|
||||||
crony.hyprland.enable = lib.mkDefault true;
|
crony.hyprland.enable = lib.mkDefault true;
|
||||||
|
crony.browsers.enable = lib.mkDefault true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user