add missing files

This commit is contained in:
Patrick Neff 2024-03-10 12:28:02 +01:00
parent cc46761cf2
commit 8252f78bf1
6 changed files with 123 additions and 0 deletions

View File

@ -0,0 +1,40 @@
{pkgs, config, lib, ...}: lib.mkIf config.programs.firefox.enable {
programs.firefox = {
package = pkgs.firefox.override {
nativeMessagingHosts = with pkgs; [
tridactyl-native
keepassxc
];
};
profiles.odie = {
isDefault = true;
id = 0;
name = "odie";
search = {
default = "DuckDuckGo";
force = true;
};
extensions = with pkgs.nur.repos.rycee.firefox-addons; [
adnauseam
istilldontcareaboutcookies
sponsorblock
stylus
keepassxc-browser
tridactyl
canvasblocker
deutsch-de-language-pack
greasemonkey
youtube-recommended-videos # unhook
return-youtube-dislikes
user-agent-string-switcher
];
settings = {
"browser.startup.homepage" = "https://duckduckgo.com";
"browser.search.region" = "DE";
"browser.search.isUS" = false;
"distribution.searchplugins.defaultLocale" = "de-DE";
"general.useragent.locale" = "de-DE";
};
};
};
}

View File

@ -0,0 +1,10 @@
{ pkgs, lib, config, ... }: {
options = {
programs.keepassxc.enable = lib.mkEnableOption "keepassxc";
};
config = lib.mkIf config.programs.keepassxc.enable {
home.packages = [
pkgs.keepassxc
];
};
}

View File

@ -0,0 +1,18 @@
{ pkgs, config, lib, ... }: {
config = lib.mkIf config.programs.kitty.enable {
programs.kitty = {
font = {
name = "JetBrains Mono";
size = 9.5;
};
shellIntegration.enableZshIntegration = true;
settings = {
background_opacity = 1;
enable_audio_bell = "no";
visual_bell_duration = "0.025";
window_padding_width = 0;
};
theme = "Catppuccin-Mocha";
};
};
}

View File

@ -0,0 +1,5 @@
{lib,config,...}: lib.mkIf config.services.nextcloud-client.enable {
services.nextcloud-client = {
startInBackground = true;
};
}

View File

@ -0,0 +1,12 @@
{ pkgs, lib, config, ... }: {
options = {
services.nixGL.enable = lib.mkEnableOption "nixGL";
};
config = lib.mkIf config.services.nixGL.enable {
home.packages = with pkgs; [
nixgl.auto.nixGLDefault
nixgl.auto.nixGLNvidia
nixgl.auto.nixVulkanNvidia
];
};
}

View File

@ -0,0 +1,38 @@
{ config, lib, ... }: {
options = {
services = {
picom = {
glxBackend = lib.mkOption {
type = lib.types.str;
description = "the default terminal to use";
default = "glx";
};
};
};
};
config = {
services.picom = lib.mkIf config.services.picom.enable {
backend = config.services.picom.glxBackend;
fade = true;
opacityRules = [
"95:class_g = 'kitty' && focused"
"85:class_g = 'kitty' && !focused"
"95:class_g = 'Alacritty' && focused"
"85:class_g = 'Alacritty' && !focused"
"85:window_type = 'dock'"
];
settings = {
blur = {
method = "gaussian";
size = 10;
deviation = 5.0;
};
corner-radius = 6;
rounded-corners-exclude = [
"window_type = 'dock'"
"window_type = 'desktop'"
];
};
};
};
}