dotfiles/hosts/dlaptop/apps.nix
2024-03-20 01:29:58 +03:00

121 lines
3.5 KiB
Nix

{ pkgs, lib, inputs, stable, ... }:
let
lock-false = {
Value = false;
Status = "locked";
};
lock-true = {
Value = true;
Status = "locked";
};
in {
users.users.delta.packages = (with pkgs; [
git
chromium
wl-clipboard
wl-clipboard-x11
(callPackage ../../derivations/audiorelay.nix { })
(callPackage ../../derivations/spotify.nix { })
#(callPackage ../derivations/nu_plugin_dns.nix { })
xorg.xwininfo
jq
dropbox
spotdl
xfce.thunar
rustdesk-flutter
autossh
scrcpy
nixfmt
btop
htop
foot
alacritty
dig
nwg-displays
nwg-drawer
imagemagick
fastfetch
hyfetch
pavucontrol
wget
wlogout
nom
vesktop
localsend
trayscale
# inputs.firefox.packages.${pkgs.system}.firefox-bin
]);
programs.firefox = {
enable = true;
policies = {
DisableTelemetry = true;
DisableFirefoxStudies = true;
DisablePocket = true;
DisableFirefoxAccounts = true;
DisableAccounts = true;
DisableFirefoxScreenshots = true;
DisplayBookmarksToolbar = "never";
DNSOverHTTPS = {
Enabled = false;
ProviderURL = "https://mozilla.cloudflare-dns.com/dns-query";
Locked = true;
};
Preferences = {
"ui.key.menuAccessKeyFocuses" = lock-false;
"signon.generation.enabled" = lock-false;
"browser.compactmode.show" = lock-true;
"browser.uidensity" = {
Value = 1;
Status = "Locked";
};
"mousewheel.with_alt.action" = {
Value = "-1";
Status = "Locked";
};
"browser.tabs.firefox-view" = lock-false;
};
# https://discourse.nixos.org/t/declare-firefox-extensions-and-settings/36265/17
# about:debugging#/runtime/this-firefox
ExtensionSettings = with builtins;
let
extension = shortId: uuid: {
name = uuid;
value = {
install_url =
"https://addons.mozilla.org/en-US/firefox/downloads/latest/${shortId}/latest.xpi";
installation_mode = "normal_installed";
};
};
in listToAttrs [
(extension "ublock-origin" "uBlock0@raymondhill.net")
(extension "container-proxy" "contaner-proxy@bekh-ivanov.me")
(extension "clearurls" "{74145f27-f039-47ce-a470-a662b129930a}")
(extension "darkreader" "addon@darkreader.org")
(extension "firefox-color" "FirefoxColor@mozilla.com")
(extension "multi-account-containers" "@testpilot-containers")
(extension "jkcs" "{6d9f4f04-2499-4fed-ae4a-02c5658c5d00}")
(extension "keepassxc-browser" "keepassxc-browser@keepassxc.org")
(extension "new-window-without-toolbar"
"new-window-without-toolbar@tkrkt.com")
(extension "open-in-spotify-desktop"
"{04a727ec-f366-4f19-84bc-14b41af73e4d}")
(extension "search_by_image" "{2e5ff8c8-32fe-46d0-9fc8-6b8986621f3c}")
(extension "single-file" "{531906d3-e22f-4a6c-a102-8057b88a1a63}")
(extension "soundfixer" "soundfixer@unrelenting.technology")
(extension "sponsorblock" "sponsorBlocker@ajay.app")
(extension "tampermonkey" "firefox@tampermonkey.net")
#(extension "torrent-control" "{e6e36c9a-8323-446c-b720-a176017e38ff}")
(extension "unpaywall" "{f209234a-76f0-4735-9920-eb62507a54cd}")
(extension "ctrl-number-to-switch-tabs"
"{84601290-bec9-494a-b11c-1baa897a9683}")
];
};
};
}