Merge branch 'master' of ssh://ssh.nx2.site:20022/nx2/dotfiles
This commit is contained in:
@@ -6,7 +6,9 @@ lib.mkIf (host != "NxACE")
|
||||
vesktop
|
||||
];
|
||||
|
||||
file.".config/vesktop/settings/settings.json".text = /* json */ ''{
|
||||
file.".config/vesktop/settings/settings.json".text = let
|
||||
settingsSyncVersion = "1729179678715";
|
||||
in /* json */ ''{
|
||||
"notifyAboutUpdates": true,
|
||||
"autoUpdate": false,
|
||||
"autoUpdateNotification": true,
|
||||
@@ -188,7 +190,7 @@ lib.mkIf (host != "NxACE")
|
||||
"authenticated": false,
|
||||
"url": "https://api.vencord.dev/",
|
||||
"settingsSync": false,
|
||||
"settingsSyncVersion": 1725386648445
|
||||
"settingsSyncVersion": ${settingsSyncVersion}
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
||||
@@ -143,6 +143,38 @@ lib.mkIf (host != "NxACE")
|
||||
};
|
||||
};
|
||||
};
|
||||
tuda = with secrets.email.tuda; {
|
||||
address = "${un}@stud.tu-darmstadt.de";
|
||||
userName = tuid;
|
||||
realName = "Lennart J. Kurzweg";
|
||||
imap = {
|
||||
port = 993;
|
||||
host = "imap.stud.tu-darmstadt.de";
|
||||
};
|
||||
smtp = {
|
||||
port = 465;
|
||||
host = "smtp.tu-darmstadt.de";
|
||||
tls.enable = true;
|
||||
};
|
||||
signature = {
|
||||
text = ''
|
||||
Field: MSc. AI/ML
|
||||
MNr: ${mnr}
|
||||
TU-ID: ${tuid}
|
||||
About Me: https://nx2.site/about-me
|
||||
Contact: https://nx2.site/contact
|
||||
GPG: https://nx2.site/gpg
|
||||
'';
|
||||
showSignature = "append";
|
||||
};
|
||||
thunderbird = {
|
||||
enable = true;
|
||||
profiles = [ "nx2" ];
|
||||
settings = id: {
|
||||
"mail.server.server_${id}.fcc_folder" = "imap://${un}%40hs-mittweida.de@xc.hs-mittweida.de/Sent";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
# { pkgs-unstable, secrets, user, system, inputs, ...}:
|
||||
{ rice, user, ... }:
|
||||
# browser.tabs.allow_transparent_browser
|
||||
{
|
||||
home.file = with rice.color; let
|
||||
blur = builtins.toString 20;
|
||||
@@ -176,6 +177,25 @@
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-document domain(mynixos.com) {
|
||||
body, html {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
header, footer {
|
||||
background-color: rgba(0,0,0,0.5) !important;
|
||||
border-radius: ${builtins.toString rice.rounding}px;
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-document domain(moodle.informatik.tu-darmstadt.de) {
|
||||
body, html , .main-inner, .main-inner * {
|
||||
background-color: transparent !important;
|
||||
}
|
||||
.bg-primary {
|
||||
background-color: rgba(${rice.lib.hex-to-rgb-comma-string accent.base}, 0.5) !important!
|
||||
}
|
||||
}
|
||||
|
||||
@-moz-document domain(nx2.site) {
|
||||
html {
|
||||
background: radial-gradient(rgba(255, 255, 255, 0.8) 5%, transparent 5%) !important;
|
||||
|
||||
@@ -53,13 +53,19 @@
|
||||
windowSize = "normal";
|
||||
gui.theme = with rice.color; {
|
||||
lightTheme = false;
|
||||
activeBorderColor = [ border "bold"];
|
||||
inactiveBorderColor = [ black.bright ];
|
||||
optionsTextColor = [ blue.base ];
|
||||
selectedLineBgColor = [ foreground ];
|
||||
selectedRangeByColor = [ magenta.bright ];
|
||||
activeBorderColor = [ foreground "bold" ];
|
||||
inactiveBorderColor = [ border ];
|
||||
optionsTextColor = [ tertiary.base ];
|
||||
selectedLineBgColor = [ secondary.base ];
|
||||
selectedRangeByColor = [ weird.bright ];
|
||||
showRandomTip = true;
|
||||
animateExplosion = true;
|
||||
cherryPickedCommitFgColor = [ accent.base ]; # Foreground color of copied commit
|
||||
cherryPickedCommitBgColor = [ secondary.dark ]; # Background color of copied commit
|
||||
markedBaseCommitFgColor = [ accent.base ]; # Foreground color of marked base commit (for rebase)
|
||||
markedBaseCommitBgColor = [ secondary.dark ]; # Background color of marked base commit (for rebase)
|
||||
unstagedChangesColor = [ negative.base ]; # Color for file with unstaged changes
|
||||
defaultFgColor = [ "default" ]; # Default text color
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
{ pkgs, pkgs-unstable, ... }:
|
||||
{
|
||||
# there also is a system module
|
||||
home.packages = with pkgs; [
|
||||
home.packages = (with pkgs; [
|
||||
gnupg
|
||||
gpg-tui
|
||||
] ++ ( with pkgs-unstable; [
|
||||
]) ++ ( with pkgs-unstable; [
|
||||
pinentry-all
|
||||
]);
|
||||
|
||||
|
||||
@@ -2,8 +2,9 @@
|
||||
{
|
||||
home = {
|
||||
packages = with pkgs; [
|
||||
nixfmt-classic # nix formater
|
||||
nil # nix language server
|
||||
# nixfmt-classic # nix formater
|
||||
# nil # nix language server
|
||||
# nixd # specified in nixd.nix
|
||||
python311Packages.python-lsp-server
|
||||
ruff
|
||||
ruff-lsp
|
||||
@@ -13,7 +14,8 @@
|
||||
marksman # markdown
|
||||
vale-ls # style-checker lsp (needs vale)
|
||||
ltex-ls # Ltex (language tool)
|
||||
] ++ (with pkgs-unstable; [
|
||||
] ++ (with pkgs-unstable; [
|
||||
bash-language-server
|
||||
helix
|
||||
]);
|
||||
sessionVariables = {
|
||||
@@ -60,7 +62,7 @@
|
||||
};
|
||||
};
|
||||
keys.normal = {
|
||||
"C-g" = [":new" ":insert-output lazygit" ":buffer-close!" ":redraw"];
|
||||
"C-g" = [ ":new" ":insert-output lazygit" ":buffer-close!" ":redraw" ];
|
||||
"A-`" = [ "no_op" ];
|
||||
"`" = [ "no_op" ];
|
||||
};
|
||||
@@ -72,10 +74,14 @@
|
||||
};
|
||||
languages = {
|
||||
language = [
|
||||
# {
|
||||
# name = "latex";
|
||||
# language-servers = ["texlab" "spellchek"];
|
||||
# }
|
||||
{
|
||||
name = "nix";
|
||||
language-servers = [ "nixd" "nil" ];
|
||||
}
|
||||
{
|
||||
name = "latex";
|
||||
language-servers = [ "texlab" "language-tool" ];
|
||||
}
|
||||
{
|
||||
name = "markdown";
|
||||
# language-servers = [ "marksman" "style-check" "language-tool" ];
|
||||
@@ -118,6 +124,9 @@
|
||||
}
|
||||
];
|
||||
language-server = {
|
||||
"nixd" = {
|
||||
command = "nixd";
|
||||
};
|
||||
"style-check" = {
|
||||
command = lib.getExe pkgs.vale-ls;
|
||||
};
|
||||
@@ -232,7 +241,7 @@
|
||||
};
|
||||
"ui.cursor.match" = { # Matching bracket etc.
|
||||
"bg" = green.dark;
|
||||
"modifiers" = [ "reversed" ];
|
||||
"modifiers" = [ ];
|
||||
};
|
||||
"ui.gutter" = {
|
||||
"bg" = black.base;
|
||||
|
||||
@@ -162,8 +162,8 @@ in {
|
||||
gaps_in = builtins.div rice.gap-size 2;
|
||||
gaps_out = rice.gap-size;
|
||||
border_size = rice.border-width;
|
||||
"col.active_border" = "rgba(${rice.lib.nohash rice.color.border}ff) rgba(${rice.lib.nohash rice.color.border2}ff) 90deg";
|
||||
"col.inactive_border" = "rgba(${rice.lib.nohash rice.color.background}ff) rgba(${rice.lib.nohash rice.color.border2}ff) 90deg";
|
||||
"col.active_border" = "rgba(${rice.lib.nohash rice.color.border2}ff) rgba(${rice.lib.nohash rice.color.border}ff) 90deg";
|
||||
"col.inactive_border" = "rgba(${rice.lib.nohash rice.color.background}ff) rgba(${rice.lib.nohash rice.color.border}ff) 90deg";
|
||||
|
||||
# cursor_inactive_timeout = 10;
|
||||
|
||||
@@ -228,7 +228,7 @@ in {
|
||||
|
||||
dwindle = {
|
||||
preserve_split = true; # you probably want this
|
||||
no_gaps_when_only = false;
|
||||
no_gaps_when_only = true;
|
||||
};
|
||||
|
||||
# master = {
|
||||
@@ -268,7 +268,7 @@ in {
|
||||
"opacity ${transparency}, sent"
|
||||
"opacity ${transparency}, neovide"
|
||||
"opacity ${transparency}, obsidian"
|
||||
"opacity ${transparency}, zathura"
|
||||
# "opacity ${transparency}, zathura"
|
||||
# "bordercolor rgba(${rice.lib.nohash rice.color.foreground}ff) rgba(${rice.lib.nohash rice.color.background}${rice.lib.float-to-drune rice.transparency}), Alacritty"
|
||||
# "bordercolor rgba(${rice.lib.nohash rice.color.foreground}ff) rgba(${rice.lib.nohash rice.color.background}${rice.lib.float-to-drune rice.transparency}), Kitty"
|
||||
"opacity ${transparency}, discord"
|
||||
@@ -330,6 +330,7 @@ in {
|
||||
"SUPER, F5, exec, nx_gcal_event force-lookup"
|
||||
"SUPER SHIFT, F5, exec, nx_gcal_event reauthenticate"
|
||||
"SUPER, F6, exec, kitty -e 'htop'"
|
||||
"SUPER, F7, exec, kitty -e 'nmtui'"
|
||||
''SUPER, F8, exec, find ~/Pictures/wallpapers/* -type f -not -path "~/Pictures/wallpapers/.git/*" | sort -R | head -n 1 | xargs swww img --transition-type wipe --transition-angle 60 --transition-step 120 --transition-fps 120''
|
||||
''SUPER, F9, exec, kitty -e sh -c 'change_colors_json $(swww query | sed -n 1p | sed -e "s-.*image: --g") && nh home switch && firefox /home/${user}/.config/color-pallete.html' ''
|
||||
''SUPER SHIFT, F9, exec, firefox /home/${user}/.config/color-pallete.html ''
|
||||
|
||||
6
home-modules/nixd.nix
Normal file
6
home-modules/nixd.nix
Normal file
@@ -0,0 +1,6 @@
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
nixd
|
||||
];
|
||||
}
|
||||
@@ -4,7 +4,7 @@
|
||||
packages = with pkgs; [ sshfs ];
|
||||
file.".ssh/config".text = ''
|
||||
HOST nxace
|
||||
HostName ${domain}
|
||||
HostName ssh.${domain}
|
||||
User nx2
|
||||
Port 50022
|
||||
|
||||
@@ -13,18 +13,13 @@
|
||||
User nx2
|
||||
Port 50022
|
||||
|
||||
HOST nxrpi
|
||||
HostName ${domain}
|
||||
User pi
|
||||
Port 50023
|
||||
|
||||
HOST nxrpil
|
||||
HostName 192.168.178.31
|
||||
User pi
|
||||
Port 50023
|
||||
User nx2
|
||||
Port 22
|
||||
|
||||
HOST nxgit
|
||||
HostName git.${domain}
|
||||
HostName ssh.${domain}
|
||||
User git
|
||||
Port 20022
|
||||
'';
|
||||
|
||||
18
home-modules/tts.nix
Executable file
18
home-modules/tts.nix
Executable file
@@ -0,0 +1,18 @@
|
||||
{ pkgs, lib, user, ... }:
|
||||
lib.mkIf (user != "tv")
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
(writeShellApplication {
|
||||
name = "ttss";
|
||||
text = let
|
||||
cmd = inp: "piper -m /home/nx2/tts/en_GB-cori-high.onnx --output_raw ${inp} | ffmpeg -hide_banner -loglevel error -f s16le -ar 22050 -ac 1 -i - -f wav - | mpv -";
|
||||
in /* bash */ ''
|
||||
if [ -p /dev/stdin ]; then
|
||||
${cmd "</dev/stdin"}
|
||||
else
|
||||
${cmd ''<<< "$@"''}
|
||||
fi
|
||||
'';
|
||||
})
|
||||
];
|
||||
}
|
||||
@@ -68,7 +68,7 @@ class Palette:
|
||||
def ensure_color(c: Color, alter_sat: bool) -> list[int]:
|
||||
hue, lum, sat = c.hls
|
||||
if alter_sat:
|
||||
new_sat = min(sat**0.5, 1)
|
||||
new_sat = min((sat**0.5) + 0.4, 1)
|
||||
else:
|
||||
new_sat = sat
|
||||
new_lum = max(lum, 0.5)
|
||||
@@ -123,7 +123,7 @@ if __name__ == "__main__":
|
||||
accent = ensure_color(c=palette[0], alter_sat=False)
|
||||
secondary = ensure_color(c=palette[1], alter_sat=True)
|
||||
tertiary = ensure_color(c=palette[2], alter_sat=False)
|
||||
weird = alter_hue(ilist=secondary, hue=180)
|
||||
weird = alter_hue(ilist=accent, hue=80)
|
||||
special = alter_hue(ilist=accent, hue=180)
|
||||
foreground = alter_l(accent, 0.9)
|
||||
background = alter_l(accent, 0.1)
|
||||
|
||||
@@ -168,12 +168,12 @@
|
||||
hovered = { underline = true; };
|
||||
};
|
||||
which = {
|
||||
mask = { bg = "#3c3836"; };
|
||||
cand = { fg = "#83a598"; };
|
||||
rest = { fg = "#928374"; };
|
||||
desc = { fg = "#fe8019"; };
|
||||
mask = { bg = black.base; };
|
||||
cand = { fg = accent.base; };
|
||||
rest = { fg = secondary.base; };
|
||||
desc = { fg = tertiary.base; };
|
||||
separator = " ";
|
||||
separator_style = { fg = "#504945"; };
|
||||
separator_style = { fg = foreground; };
|
||||
};
|
||||
help = {
|
||||
on = { fg = "#fe8019"; };
|
||||
|
||||
36
home-modules/zathura.nix
Normal file
36
home-modules/zathura.nix
Normal file
@@ -0,0 +1,36 @@
|
||||
{ pkgs, rice, ... }:
|
||||
{
|
||||
programs.zathura = {
|
||||
enable = true;
|
||||
options = with rice.color; {
|
||||
completion-bg = background;
|
||||
completion-fg = foreground;
|
||||
completion-highlight-bg = background;
|
||||
completion-highlight-fg = accent.base;
|
||||
default-bg = "rgba(${rice.lib.hex-to-rgb-comma-string background},${builtins.toString rice.transparency})";
|
||||
default-fg = foreground;
|
||||
highlight-active-color = "rgba(${rice.lib.hex-to-rgb-comma-string accent.base},0.5)";
|
||||
highlight-color = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)";
|
||||
highlight-fg = "rgba(${rice.lib.hex-to-rgb-comma-string secondary.base},0.5)";
|
||||
index-active-bg = background;
|
||||
inputbar-bg = background;
|
||||
inputbar-fg = foreground;
|
||||
notification-bg = background;
|
||||
notification-error-bg = background;
|
||||
notification-error-fg = foreground;
|
||||
notification-fg = foreground;
|
||||
notification-warning-bg = background;
|
||||
notification-warning-fg = foreground;
|
||||
recolor = true;
|
||||
recolor-darkcolor = foreground;
|
||||
recolor-keephue = true;
|
||||
recolor-lightcolor = background;
|
||||
selection-clipboard = "clipboard";
|
||||
statusbar-bg = black.base;
|
||||
statusbar-fg = foreground;
|
||||
|
||||
n-completion-items = 9999999999999;
|
||||
exec-command = "open";
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user