88 lines
2.1 KiB
Nix
88 lines
2.1 KiB
Nix
{ inputs, config, lib, pkgs, ... }:
|
|
|
|
# TODO: split into multiple files
|
|
|
|
{
|
|
home.packages = with pkgs; [
|
|
telegram-desktop
|
|
vscode
|
|
spotify
|
|
obsidian
|
|
nixfmt-classic
|
|
plantuml
|
|
btop
|
|
python312
|
|
python312Packages.virtualenv
|
|
python312Packages.pip
|
|
libreoffice
|
|
imagemagick
|
|
wl-clipboard
|
|
tesseract
|
|
syncthing
|
|
todo
|
|
pass
|
|
gtypist
|
|
zip
|
|
unzip
|
|
vlc
|
|
# yubikey-manager-qt
|
|
# paprefs
|
|
];
|
|
|
|
services.syncthing = { enable = true; };
|
|
|
|
# do i really need it?
|
|
programs.direnv.enable = true;
|
|
programs.direnv.nix-direnv.enable = true;
|
|
programs.direnv.enableZshIntegration = true;
|
|
|
|
# imports = [ inputs.zen-browser.homeModules.twilight ];
|
|
imports = [ inputs.zen-browser.homeModules.default ];
|
|
# inputs.zen-browser.homeModules.beta
|
|
# or inputs.zen-browser.homeModules.twilight
|
|
# or inputs.zen-browser.homeModules.twilight-official
|
|
programs.zen-browser = {
|
|
enable = true;
|
|
#profiles."Default Profile" = {
|
|
# search = {
|
|
# default = "Perplexity"; # Use the ID of your custom engine below
|
|
#engines = {
|
|
#"perplexity" = { # Custom engine ID (lowercase, no spaces)
|
|
#name = "Perplexity";
|
|
#urls = [{
|
|
# template = "https://www.perplexity.ai/search?q=%s";
|
|
#}];
|
|
#definedAliases = [ "@per" ];
|
|
#};
|
|
# };
|
|
#};
|
|
};
|
|
|
|
xdg.mimeApps = let
|
|
value = let
|
|
system = pkgs.stdenv.hostPlatform.system;
|
|
zen-browser = inputs.zen-browser.packages.${system}.default;
|
|
in zen-browser.meta.desktopFileName;
|
|
|
|
associations = builtins.listToAttrs (map (name: { inherit name value; }) [
|
|
"application/x-extension-shtml"
|
|
"application/x-extension-xhtml"
|
|
"application/x-extension-html"
|
|
"application/x-extension-xht"
|
|
"application/x-extension-htm"
|
|
"x-scheme-handler/unknown"
|
|
"x-scheme-handler/mailto"
|
|
"x-scheme-handler/chrome"
|
|
"x-scheme-handler/about"
|
|
"x-scheme-handler/https"
|
|
"x-scheme-handler/http"
|
|
"application/xhtml+xml"
|
|
"application/json"
|
|
"text/html"
|
|
]);
|
|
in {
|
|
associations.added = associations;
|
|
defaultApplications = associations;
|
|
};
|
|
}
|