Update system packages and home configuration

This commit is contained in:
2025-10-17 01:20:53 +02:00
parent efb8dcda36
commit 873e9fd4e7
24 changed files with 189 additions and 263 deletions

7
modules/home/anki.nix Normal file
View File

@@ -0,0 +1,7 @@
{ pkgs, ... }:
{
programs.anki = {
enable = true;
package = pkgs.anki;
};
}

View File

@@ -1,5 +1,4 @@
{ config, ... }:
{
_: {
programs.cava = {
enable = true;
settings = {

37
modules/home/chromium.nix Normal file
View File

@@ -0,0 +1,37 @@
{ pkgs, ... }:
{
programs.chromium = {
enable = true;
package = pkgs.ungoogled-chromium;
commandLineArgs = [
"--disable-gpu" # Do czasu aż naprawią problemy
];
dictionaries = with pkgs; [
hunspellDictsChromium.en_US
# hunspellDictsChromium.pl_PL Jeśli się taka pojawi
];
extensions = [
{
id = "ocaahdebbfolfmndjeplogmgcagdmblk"; # Chromium Web Store
}
{
id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; # Dark Reader
}
{
id = "fnaicdffflnofjppbagibeoednhnbjhg"; # floccus bookmarks sync
}
{
id = "amknoiejhlmhancpahfcfcfhllgkpbld"; # Hoppscotch Browser Extension
}
{
id = "nngceckbapebfimnlniiiahkandclblb"; # Menedżer haseł Bitwarden
}
{
id = "fdaphilojaklgkoocegabckfanjoacjg"; # mtab
}
{
id = "cjpalhdlnbpafiamejdnhcphjbkeiagm"; # uBlock Origin
}
];
};
}

View File

@@ -11,6 +11,7 @@ in
waybarChoice
./wlogout
./amfora.nix
./anki.nix
./bash.nix
./bash-aliases.nix
./bash-functions.nix
@@ -18,16 +19,20 @@ in
./btop.nix
./bottom.nix
./cava.nix
./chromium.nix
./emoji.nix
./eza.nix
./fzf.nix
./gh.nix
./git.nix
./gtk.nix
./kdeConnect.nix
./kitty.nix
./lazygit.nix
./librewolf.nix
./lutris.nix
./nextcloud.nix
./obs-studio.nix
./onlyoffice.nix
./qt.nix
./ssh.nix
./starship.nix
@@ -35,10 +40,11 @@ in
./swappy.nix
./swaync.nix
./tealdeer.nix
./vesktop.nix
./virtmanager.nix
./xdg.nix
./zoxide.nix
./vscode.nix
# ./zed.nix
./zed.nix
];
}

View File

@@ -12,7 +12,7 @@ in
"$modifier, A, exec, anki"
"$modifier, B, exec, bitwarden"
"$modifier, C, exec, chromium"
"$modifier, D, exec, discord"
"$modifier, D, exec, vesktop"
"$modifier, G, exec, gimp"
"$modifier, I, exec, iotas"
"$modifier, L, exec, logseq"
@@ -54,7 +54,6 @@ in
"$modifier, E, exec, emopicker9000"
"$modifier, K, exec, galculator"
"$modifier, P, exec, hyprpicker -a"
# "$modifier ALT, K, exec, kronometer"
"$modifier ALT, W, exec, wallsetter"
"$modifier SHIFT, K, exec, list-keybinds"
"$modifier SHIFT, P, exec, pavucontrol"

View File

@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
services.kdeconnect = {
enable = true;
indicator = true;
package = pkgs.kdePackages.kdeconnect-kde;
};
}

View File

@@ -1,35 +0,0 @@
# Lazygit is a simple terminal UI for git commands.
{ config, lib, ... }:
let
accent = "#${config.lib.stylix.colors.base0D}";
muted = "#${config.lib.stylix.colors.base03}";
in
{
programs.lazygit = {
enable = true;
settings = lib.mkForce {
disableStartupPopups = true;
notARepository = "skip";
promptToReturnFromSubprocess = false;
update.method = "never";
git = {
commit.signOff = true;
parseEmoji = true;
};
gui = {
theme = {
activeBorderColor = [
accent
"bold"
];
inactiveBorderColor = [ muted ];
};
showListFooter = false;
showRandomTip = false;
showCommandLog = false;
showBottomLine = false;
nerdFontsVersion = "3";
};
};
};
}

11
modules/home/lutris.nix Normal file
View File

@@ -0,0 +1,11 @@
{ pkgs, osConfig, ... }:
{
programs.lutris = {
enable = true;
package = pkgs.lutris;
protonPackages = [ pkgs.proton-ge-bin ];
winePackages = [ pkgs.wineWowPackages.waylandFull ];
defaultWinePackage = pkgs.wineWowPackages.waylandFull;
steamPackage = osConfig.programs.steam.package;
};
}

View File

@@ -0,0 +1,8 @@
{ pkgs, ... }:
{
services.nextcloud-client = {
enable = true;
startInBackground = true;
package = pkgs.nextcloud-client;
};
}

View File

@@ -0,0 +1,13 @@
{ pkgs, ... }:
{
programs.onlyoffice = {
enable = true;
package = pkgs.onlyoffice-desktopeditors;
settings = {
UITheme = "theme-night";
editorWindowMode = false;
position = "@Rect(10 50 1900 1020)";
titlebar = "custom";
};
};
}

View File

@@ -11,8 +11,17 @@ pkgs.writeShellScriptBin "list-keybinds" ''
msg=' = Windows/Super/CAPS LOCK (Enter nie wykonuje skrótu)'
keybinds=$(cat ~/.config/hypr/hyprland.conf | grep -E '^bind')
# replace #modifier with SUPER in the displayed keybinds for rofi
display_keybinds=$(echo "$keybinds" | sed 's/\$modifier//g' | sed 's|${desktopEntriesPath}/||g')
# replace $modifier with SUPER and clean up paths
display_keybinds=$(echo "$keybinds" | sed 's/\$modifier//g' | sed 's|${desktopEntriesPath}/||g')
# remove "bind=" and "bindm=" prefixes
display_keybinds=$(echo "$display_keybinds" | sed 's/^bind=//' | sed 's/^bindm=/🖱/')
# add + before CONTROL, SHIFT, ALT when they appear after removed $modifier
display_keybinds=$(echo "$display_keybinds" | sed 's/ CONTROL/ + CONTROL/g' | sed 's/ SHIFT/ + SHIFT/g' | sed 's/ ALT/ + ALT/g')
# replace commas: first comma -> " +", second comma -> " =", remaining commas -> " ->"
display_keybinds=$(echo "$display_keybinds" | sed 's/,/ +/1' | sed 's/,/ =/1' | sed 's/,/ ->/g')
# use rofi to display the keybinds with the modified content
echo "$display_keybinds" | rofi -dmenu -i -config ~/.config/rofi/config-long.rasi -mesg "$msg"

View File

@@ -6,8 +6,8 @@
rofi.enable = false;
hyprland.enable = false;
hyprlock.enable = false;
ghostty.enable = false;
vscode.enable = false;
zed.enable = false;
qt = {
enable = true;
platform = "qtct";

3
modules/home/vesktop.nix Normal file
View File

@@ -0,0 +1,3 @@
_: {
programs.vesktop.enable = true;
}

View File

@@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, config, ... }:
let
messengerIcon = pkgs.fetchurl {
url = "https://assets.stickpng.com/images/580b57fcd9996e24bc43c526.png";
@@ -32,8 +32,23 @@ in
mimeApps.enable = true;
portal = {
enable = true;
extraPortals = [ pkgs.xdg-desktop-portal-hyprland ];
configPackages = [ pkgs.hyprland ];
extraPortals = with pkgs; [
xdg-desktop-portal-hyprland
xdg-desktop-portal-gtk
kdePackages.xdg-desktop-portal-kde
];
configPackages = [ config.wayland.windowManager.hyprland.package ];
config = {
common.default = "*";
hyprland = {
default = [
"hyprland"
"gtk"
];
"org.freedesktop.impl.portal.FileChooser" = "kde";
"org.freedesktop.impl.portal.Print" = "kde";
};
};
};
desktopEntries = {
"messenger" = {

View File

@@ -1,124 +1,61 @@
{ pkgs, lib, ... }:
{ pkgs, ... }:
{
programs.zed-editor = {
enable = true;
package = pkgs.zed-editor;
installRemoteServer = true;
extensions = [
"nix"
"one-dark-pro-monokai-darker"
"toml"
"superhtml"
"dockerfile"
"docker-compose"
"git-firefly"
"vue"
"astro"
"docker-compose"
"nix"
"csv"
"rainbow-csv"
"vscode-icons"
"codebook"
"python-requirements"
"one-dark-pro-monokai-darker"
"hyprlang"
"json5"
"html-jinja"
"deputy"
];
extraPackages = [ ];
userSettings = {
assistant = {
enabled = true;
version = "2";
default_open_ai_model = null;
### PROVIDER OPTIONS
### zed.dev models { claude-3-5-sonnet-latest } requires github connected
### anthropic models { claude-3-5-sonnet-latest claude-3-haiku-latest claude-3-opus-latest } requires API_KEY
### copilot_chat models { gpt-4o gpt-4 gpt-3.5-turbo o1-preview } requires github connected
agent = {
always_allow_tool_actions = true;
default_profile = "ask";
default_model = {
provider = "zed.dev";
model = "claude-3-5-sonnet-latest";
};
# inline_alternatives = [
# {
# provider = "copilot_chat";
# model = "gpt-3.5-turbo";
# }
# ];
};
node = {
path = lib.getExe pkgs.nodejs;
npm_path = lib.getExe' pkgs.nodejs "npm";
};
hour_format = "hour24";
auto_update = false;
terminal = {
alternate_scroll = "off";
blinking = "off";
copy_on_select = false;
dock = "bottom";
detect_venv = {
on = {
directories = [
".env"
"env"
".venv"
"venv"
];
activate_script = "default";
};
};
# env = {
# TERM = "alacritty";
# };
font_family = "FiraCode Nerd Font";
font_features = null;
font_size = null;
line_height = "comfortable";
option_as_meta = false;
button = false;
shell = "system";
#{
# program = "zsh";
#};
toolbar = {
title = true;
};
working_directory = "current_project_directory";
};
# lsp = {
# rust-analyzer = {
# binary = {
# path = lib.getExe pkgs.rust-analyzer;
# path_lookup = true;
# };
# };
# nix = {
# binary = {
# path_lookup = true;
# };
# };
# };
languages = {
"HTML" = {
"language_servers" = [
"vscode-html-language-server"
"superhtml"
];
"formatter" = {
"language_server" = {
"name" = "superhtml";
};
};
provider = "anthropic";
model = "claude-sonnet-4-latest";
};
};
vim_mode = false;
load_direnv = "shell_hook";
base_keymap = "VSCode";
theme = {
mode = "system";
light = "One Dark Pro Monokai Darker Theme";
dark = "One Dark Pro Monokai Darker Theme";
telemetry = {
diagnostics = false;
metrics = false;
};
show_whitespaces = "all";
icon_theme = "VSCode Icons (Dark)";
ui_font_size = 16;
buffer_font_size = 16;
buffer_font_size = 15;
theme = {
mode = "dark";
light = "One Light";
dark = "One Dark Pro Monokai Darker";
};
languages = {
Python = {
language_servers = [ "!basedpyright" ];
};
YAML = {
tab_size = 2;
};
};
};
};
}