-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
581 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
modules/home-manager/programs/browsers/firefox/bookmarks.nix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,3 @@ | ||
# --- parts/modules/home-manager/profiles/home-firefox/bookmarks.nix | ||
# | ||
# Author: czichy <[email protected]> | ||
# URL: https://github.com/czichy/tensorfiles | ||
# License: MIT | ||
# | ||
# 888 .d888 d8b 888 | ||
# 888 d88P" Y8P 888 | ||
# 888 888 888 | ||
# 888888 .d88b. 88888b. .d8888b .d88b. 888d888 888888 888 888 .d88b. .d8888b | ||
# 888 d8P Y8b 888 "88b 88K d88""88b 888P" 888 888 888 d8P Y8b 88K | ||
# 888 88888888 888 888 "Y8888b. 888 888 888 888 888 888 88888888 "Y8888b. | ||
# Y88b. Y8b. 888 888 X88 Y88..88P 888 888 888 888 Y8b. X88 | ||
# "Y888 "Y8888 888 888 88888P' "Y88P" 888 888 888 888 "Y8888 88888P' | ||
[ | ||
{ | ||
toolbar = true; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
{localFlake}: { | ||
config, | ||
lib, | ||
pkgs, | ||
inputs, | ||
... | ||
}: | ||
with builtins; | ||
with lib; let | ||
inherit | ||
(localFlake.lib) | ||
mkOverrideAtHmModuleLevel | ||
isModuleLoadedAndEnabled | ||
mkImpermanenceEnableOption | ||
; | ||
|
||
cfg = config.tensorfiles.hm.programs.browsers.vivaldi; | ||
_ = mkOverrideAtHmModuleLevel; | ||
|
||
impermanenceCheck = | ||
(isModuleLoadedAndEnabled config "tensorfiles.hm.system.impermanence") && cfg.impermanence.enable; | ||
impermanence = | ||
if impermanenceCheck | ||
then config.tensorfiles.hm.system.impermanence | ||
else {}; | ||
in { | ||
options.tensorfiles.hm.programs.browsers.vivaldi = with types; { | ||
enable = mkEnableOption '' | ||
TODO | ||
''; | ||
|
||
impermanence = { | ||
enable = mkImpermanenceEnableOption; | ||
}; | ||
}; | ||
|
||
config = mkIf cfg.enable (mkMerge [ | ||
# |----------------------------------------------------------------------| # | ||
{ | ||
programs.vivaldi = { | ||
enable = _ true; | ||
commandLineArgs = [ | ||
"--disable-gpu-driver-bug-workarounds" | ||
"--enable-features=WaylandWindowDecorations" | ||
"--enable-gpu-rasterization" | ||
"--enable-zero-copy" | ||
"--ignore-gpu-blocklist" | ||
"--ozone-platform=wayland" | ||
"--ozone-platform-hint=auto" | ||
"--enable-features=WaylandWindowDecorations,CanvasOopRasterization,Vulkan,UseSkiaRenderer" | ||
]; | ||
extensions = [ | ||
{id = "oboonakemofpalcgghocfoadofidjkkk";} | ||
{id = "clngdbkpkpeebahjckkjfobafhncgmne";} | ||
]; | ||
}; | ||
} | ||
# |----------------------------------------------------------------------| # | ||
(mkIf impermanenceCheck { | ||
home.persistence."${impermanence.persistentRoot}${config.home.homeDirectory}" = { | ||
directories = [ | ||
".config/vivaldi" | ||
".local/lib/vivaldi" | ||
]; | ||
files = [ | ||
".local/share/.vivaldi_reporting_data" | ||
]; | ||
}; | ||
}) | ||
# |----------------------------------------------------------------------| # | ||
]); | ||
|
||
meta.maintainers = with localFlake.lib.maintainers; [czichy]; | ||
} |
Oops, something went wrong.