mirror of
https://github.com/nmasur/dotfiles
synced 2025-08-23 16:04:40 +00:00
Compare commits
3 Commits
e53d9eb1a9
...
e975db7385
Author | SHA1 | Date | |
---|---|---|---|
|
e975db7385 | ||
|
08ec8ce4b8 | ||
|
7388eed876 |
@@ -74,6 +74,8 @@ in
|
|||||||
"svg.context-properties.content.enabled" = true; # Sidebery styling
|
"svg.context-properties.content.enabled" = true; # Sidebery styling
|
||||||
"browser.tabs.hoverPreview.enabled" = false; # Disable tab previews
|
"browser.tabs.hoverPreview.enabled" = false; # Disable tab previews
|
||||||
"browser.tabs.hoverPreview.showThumbnails" = false; # Disable tab previews
|
"browser.tabs.hoverPreview.showThumbnails" = false; # Disable tab previews
|
||||||
|
"browser.gesture.swipe.left" = "cmd_scrollLeft"; # Disable swipe to go back
|
||||||
|
"browser.gesture.swipe.right" = "cmd_scrollRight"; # Disable swipe to go forward
|
||||||
};
|
};
|
||||||
userChrome = ''
|
userChrome = ''
|
||||||
:root {
|
:root {
|
||||||
|
@@ -81,10 +81,10 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# Auto start on shell init
|
# Auto start on shell init
|
||||||
enableBashIntegration = false;
|
enableBashIntegration = true;
|
||||||
enableFishIntegration = false;
|
enableFishIntegration = true;
|
||||||
enableZshIntegration = false;
|
enableZshIntegration = true;
|
||||||
attachExistingSession = false;
|
attachExistingSession = true;
|
||||||
exitShellOnExit = false;
|
exitShellOnExit = false;
|
||||||
|
|
||||||
settings = {
|
settings = {
|
||||||
|
@@ -67,7 +67,7 @@ in
|
|||||||
|
|
||||||
# Tell Caddy to use Cloudflare DNS for ACME challenge validation
|
# Tell Caddy to use Cloudflare DNS for ACME challenge validation
|
||||||
services.caddy.package = pkgs.caddy.withPlugins {
|
services.caddy.package = pkgs.caddy.withPlugins {
|
||||||
plugins = [ "github.com/caddy-dns/cloudflare@v0.2.1" ];
|
plugins = [ "github.com/caddy-dns/cloudflare@8cbec3f04d5b4a768c52941a5468c4b71436509e" ]; # v0.2.1
|
||||||
hash = "sha256-2D7dnG50CwtCho+U+iHmSj2w14zllQXPjmTHr6lJZ/A=";
|
hash = "sha256-2D7dnG50CwtCho+U+iHmSj2w14zllQXPjmTHr6lJZ/A=";
|
||||||
};
|
};
|
||||||
nmasur.presets.services.caddy.tlsPolicies = [
|
nmasur.presets.services.caddy.tlsPolicies = [
|
||||||
@@ -159,12 +159,13 @@ in
|
|||||||
requires = [ "cloudflare-api-secret.service" ];
|
requires = [ "cloudflare-api-secret.service" ];
|
||||||
script =
|
script =
|
||||||
let
|
let
|
||||||
args =
|
args = [
|
||||||
[ "--cache-file /var/lib/cloudflare-dyndns/ip.cache" ]
|
"--cache-file /var/lib/cloudflare-dyndns/ip.cache"
|
||||||
++ (if config.services.cloudflare-dyndns.ipv4 then [ "-4" ] else [ "-no-4" ])
|
]
|
||||||
++ (if config.services.cloudflare-dyndns.ipv6 then [ "-6" ] else [ "-no-6" ])
|
++ (if config.services.cloudflare-dyndns.ipv4 then [ "-4" ] else [ "-no-4" ])
|
||||||
++ lib.optional config.services.cloudflare-dyndns.deleteMissing "--delete-missing"
|
++ (if config.services.cloudflare-dyndns.ipv6 then [ "-6" ] else [ "-no-6" ])
|
||||||
++ lib.optional config.services.cloudflare-dyndns.proxied "--proxied";
|
++ lib.optional config.services.cloudflare-dyndns.deleteMissing "--delete-missing"
|
||||||
|
++ lib.optional config.services.cloudflare-dyndns.proxied "--proxied";
|
||||||
in
|
in
|
||||||
lib.mkForce ''
|
lib.mkForce ''
|
||||||
export CLOUDFLARE_API_TOKEN=$(cat ''${CREDENTIALS_DIRECTORY}/apiToken)
|
export CLOUDFLARE_API_TOKEN=$(cat ''${CREDENTIALS_DIRECTORY}/apiToken)
|
||||||
|
Reference in New Issue
Block a user