Migrate to snowfall lib
This commit is contained in:
22
modules/home/gui/apps/firefox/default.nix
Executable file
22
modules/home/gui/apps/firefox/default.nix
Executable file
@ -0,0 +1,22 @@
|
||||
{ lib, config, ... }: {
|
||||
config = lib.mkIf (config.homecfg.make.gui) {
|
||||
programs.firefox = {
|
||||
enable = true;
|
||||
profiles = {
|
||||
main = {
|
||||
id = 0;
|
||||
settings = {
|
||||
"browser.uidensity" = 1;
|
||||
"privacy.trackingprotection.enabled" = true;
|
||||
"privacy.trackingprotection.socialtracking.enabled" = true;
|
||||
"privacy.trackingprotection.socialtracking.annotate.enabled" = true;
|
||||
"services.sync.declinedEngines" = "passwords";
|
||||
"services.sync.engine.passwords" = false;
|
||||
"toolkit.legacyUserProfileCustomizations.stylesheets" = true;
|
||||
};
|
||||
userChrome = builtins.readFile ./userChrome.css;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
14
modules/home/gui/apps/firefox/userChrome.css
Executable file
14
modules/home/gui/apps/firefox/userChrome.css
Executable file
@ -0,0 +1,14 @@
|
||||
#main-window[tabsintitlebar="true"]:not([extradragspace="true"]) #TabsToolbar > .toolbar-items {
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
}
|
||||
#main-window:not([tabsintitlebar="true"]) #TabsToolbar {
|
||||
visibility: collapse !important;
|
||||
}
|
||||
#sidebar-box[sidebarcommand="treestyletab_piro_sakura_ne_jp-sidebar-action"] #sidebar-header {
|
||||
display: none;
|
||||
}
|
||||
.tab {
|
||||
margin-left: 1px;
|
||||
margin-right: 1px;
|
||||
}
|
11
modules/home/gui/apps/images/default.nix
Normal file
11
modules/home/gui/apps/images/default.nix
Normal file
@ -0,0 +1,11 @@
|
||||
{ lib, config, pkgs, ... }: {
|
||||
|
||||
config = lib.mkIf (config.homecfg.make.gui) {
|
||||
programs.imv.enable = true;
|
||||
|
||||
programs.obs-studio.enable = true;
|
||||
|
||||
home.packages = with pkgs; [ jellyfin-mpv-shim krita gimp darktable ];
|
||||
};
|
||||
|
||||
}
|
11
modules/home/gui/apps/mpv/default.nix
Executable file
11
modules/home/gui/apps/mpv/default.nix
Executable file
@ -0,0 +1,11 @@
|
||||
{ lib, config, pkgs, ... }: {
|
||||
|
||||
config = lib.mkIf (config.homecfg.make.gui) {
|
||||
programs.mpv = {
|
||||
enable = true;
|
||||
scripts = with pkgs; [ mpvScripts.mpris ];
|
||||
};
|
||||
|
||||
programs.yt-dlp.enable = true;
|
||||
};
|
||||
}
|
31
modules/home/gui/apps/pipewire/default.nix
Executable file
31
modules/home/gui/apps/pipewire/default.nix
Executable file
@ -0,0 +1,31 @@
|
||||
{ lib, config, ... }: {
|
||||
|
||||
config = lib.mkIf (config.homecfg.make.gui) {
|
||||
xdg.configFile."pipewire/pipewire-pulse.conf.d/desktop.conf".text = ''
|
||||
context.modules = [
|
||||
{ name = libpipewire-module-loopback
|
||||
args = {
|
||||
node.description = "Desktop"
|
||||
node.name = "Desktop"
|
||||
audio.position = [ FL FR ]
|
||||
capture.props = {
|
||||
media.class = Audio/Sink
|
||||
node.name = "Desktop"
|
||||
}
|
||||
}
|
||||
}
|
||||
{ name = libpipewire-module-loopback
|
||||
args = {
|
||||
node.description = "Music"
|
||||
node.name = "Music"
|
||||
audio.position = [ FL FR ]
|
||||
capture.props = {
|
||||
media.class = Audio/Sink
|
||||
node.name = "Music"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
'';
|
||||
};
|
||||
}
|
65
modules/home/gui/apps/vosk/default.nix
Normal file
65
modules/home/gui/apps/vosk/default.nix
Normal file
@ -0,0 +1,65 @@
|
||||
{ lib, config, pkgs, ... }: {
|
||||
|
||||
config = lib.mkIf (config.homecfg.make.gui) {
|
||||
# home.packages = with pkgs; [
|
||||
# custom.vosk
|
||||
# custom.vosk.cli
|
||||
# custom.vosk.lang.en
|
||||
# custom.vosk.lang.ja
|
||||
# custom.vosk.lang.de
|
||||
# custom.vosk.lang.ru
|
||||
# jq
|
||||
# (python3.withPackages (ps: with ps; [ translatepy ]))
|
||||
# ];
|
||||
|
||||
# xdg.configFile."script/transcript-translate.py".text = ''
|
||||
# #!/bin/python
|
||||
|
||||
# import sys;
|
||||
# from translatepy.translators.google import GoogleTranslate;
|
||||
|
||||
# if len(sys.argv) != 2:
|
||||
# print("No language provided.")
|
||||
# exit
|
||||
# translator = GoogleTranslate()
|
||||
# while True:
|
||||
# for line in sys.stdin:
|
||||
# sys.stdout.write(translator.translate(line,sys.argv[1]).result+"\n")
|
||||
# '';
|
||||
|
||||
# xdg.configFile."script/transcript.sh".text = ''
|
||||
# #!/bin/sh
|
||||
|
||||
# MODELS=(
|
||||
# "English:${pkgs.custom.vosklang.en-us}/usr/share/vosk-models/en-us"
|
||||
# "German:${pkgs.custom.vosklang.de}/usr/share/vosk-models/de"
|
||||
# "Russian:${pkgs.custom.vosklang.ru}/usr/share/vosk-models/ru"
|
||||
# "Japanese:${pkgs.custom.vosklang.ja}/usr/share/vosk-models/ja"
|
||||
# )
|
||||
|
||||
# MODEL_OPTS=""
|
||||
# for pair in "''${MODELS[@]}"; do
|
||||
# MODEL_OPTS+="$pair\n"
|
||||
# done
|
||||
|
||||
# MODEL_OPT=$(echo -e "$MODEL_OPTS" | wofi --dmenu -p "Choose model:")
|
||||
# MODEL=$(echo "$MODEL_OPT" | awk -F ':' '{print $2}')
|
||||
|
||||
# TRANSS="None\nNone-prog\nEnglish\nGerman\nRussian\nJapanese"
|
||||
# TRANS=$(echo -e "$TRANSS" | wofi --dmenu -p "Choose translation:")
|
||||
|
||||
# export VOSK_MODEL=$MODEL
|
||||
# case $TRANS in
|
||||
# "None")
|
||||
# voskcli 2>/dev/null | jq --unbuffered -r '.alternatives[0].text // empty | select(length > 0)' 2>/dev/null
|
||||
# ;;
|
||||
# "None-prog")
|
||||
# voskcli 2>/dev/null | jq --unbuffered -r '.alternatives[0].text // empty, .partial // empty | select(length > 0)' 2>/dev/null
|
||||
# ;;
|
||||
# *)
|
||||
# voskcli 2>/dev/null | jq --unbuffered -r '.alternatives[0].text // empty | select(length > 0)' | python ~/.config/script/transcript-translate.py $TRANS
|
||||
# ;;
|
||||
# esac
|
||||
# '';
|
||||
};
|
||||
}
|
17
modules/home/gui/apps/vscodium/default.nix
Normal file
17
modules/home/gui/apps/vscodium/default.nix
Normal file
@ -0,0 +1,17 @@
|
||||
{ lib, config, pkgs, ... }: {
|
||||
|
||||
config = lib.mkIf (config.homecfg.make.gui) {
|
||||
programs.vscode = {
|
||||
enable = true;
|
||||
package = pkgs.vscodium;
|
||||
extensions = with pkgs.vscode-extensions; [
|
||||
bbenoist.nix
|
||||
esbenp.prettier-vscode
|
||||
golang.go
|
||||
ms-python.vscode-pylance
|
||||
ms-vscode.cpptools
|
||||
dbaeumer.vscode-eslint
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
48
modules/home/gui/apps/zathura/default.nix
Executable file
48
modules/home/gui/apps/zathura/default.nix
Executable file
@ -0,0 +1,48 @@
|
||||
{ lib, config, ... }: {
|
||||
|
||||
config = lib.mkIf (config.homecfg.make.gui) {
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
extraConfig = ''
|
||||
set default-fg "#${config.colorScheme.colors.base06}"
|
||||
set default-bg "#${config.colorScheme.colors.base00}"
|
||||
|
||||
set completion-bg "#${config.colorScheme.colors.base02}"
|
||||
set completion-fg "#${config.colorScheme.colors.base06}"
|
||||
set completion-highlight-bg "#${config.colorScheme.colors.base03}"
|
||||
set completion-highlight-fg "#${config.colorScheme.colors.base06}"
|
||||
set completion-group-bg "#${config.colorScheme.colors.base01}"
|
||||
set completion-group-fg "#${config.colorScheme.colors.base0C}"
|
||||
|
||||
set statusbar-fg "#${config.colorScheme.colors.base06}"
|
||||
set statusbar-bg "#${config.colorScheme.colors.base01}"
|
||||
|
||||
set notification-bg "#${config.colorScheme.colors.base01}"
|
||||
set notification-fg "#${config.colorScheme.colors.base06}"
|
||||
set notification-error-bg "#${config.colorScheme.colors.base01}"
|
||||
set notification-error-fg "#${config.colorScheme.colors.base0F}"
|
||||
set notification-warning-bg "#${config.colorScheme.colors.base01}"
|
||||
set notification-warning-fg "#${config.colorScheme.colors.base09}"
|
||||
|
||||
set inputbar-fg "#${config.colorScheme.colors.base06}"
|
||||
set inputbar-bg "#${config.colorScheme.colors.base01}"
|
||||
|
||||
set recolor-lightcolor "#${config.colorScheme.colors.base00}"
|
||||
set recolor-darkcolor "#${config.colorScheme.colors.base06}"
|
||||
|
||||
set index-fg "#${config.colorScheme.colors.base06}"
|
||||
set index-bg "#${config.colorScheme.colors.base00}"
|
||||
set index-active-fg "#${config.colorScheme.colors.base06}"
|
||||
set index-active-bg "#${config.colorScheme.colors.base01}"
|
||||
|
||||
set render-loading-bg "#${config.colorScheme.colors.base00}"
|
||||
set render-loading-fg "#${config.colorScheme.colors.base06}"
|
||||
|
||||
set highlight-color "#${config.colorScheme.colors.base04}"
|
||||
set highlight-fg "#${config.colorScheme.colors.base0E}"
|
||||
set highlight-active-color "#${config.colorScheme.colors.base0E}"
|
||||
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user