Compare commits

..

9 commits

9 changed files with 115 additions and 8 deletions

View file

@ -174,6 +174,8 @@
neovim neovim
git git
jujutsu jujutsu
# SDDM Cursor theme
vimix-cursors
]; ];
programs.zsh.enable = true; programs.zsh.enable = true;
@ -212,7 +214,10 @@
}; };
services.displayManager.sddm = { services.displayManager.sddm = {
enable = true; enable = true;
wayland.enable = true; wayland = {
enable = true;
compositor = "kwin";
};
enableHidpi = true; enableHidpi = true;
package = lib.mkForce pkgs.libsForQt5.sddm; package = lib.mkForce pkgs.libsForQt5.sddm;
extraPackages = lib.mkForce [ extraPackages = lib.mkForce [
@ -220,6 +225,12 @@
pkgs.libsForQt5.qt5.qtgraphicaleffects pkgs.libsForQt5.qt5.qtgraphicaleffects
]; ];
settings = {
Theme = {
CursorTheme = "Vimix-cursors";
};
};
sugarCandyNix = { sugarCandyNix = {
enable = true; enable = true;
settings = { settings = {
@ -233,4 +244,60 @@
}; };
}; };
}; };
# Nvidia config
hardware.graphics.enable = true;
services.xserver.videoDrivers = ["nvidia" "amdgpu"];
hardware.nvidia = {
modesetting.enable = true;
# Nvidia power management. Experimental, and can cause sleep/suspend to fail.
# Enable this if you have graphical corruption issues or application crashes after waking
# up from sleep. This fixes it by saving the entire VRAM memory to /tmp/ instead
# of just the bare essentials.
powerManagement.enable = false;
# Fine-grained power management. Turns off GPU when not in use.
# Experimental and only works on modern Nvidia GPUs (Turing or newer).
powerManagement.finegrained = true;
# Use the NVidia open source kernel module (not to be confused with the
# independent third-party "nouveau" open source driver).
# Support is limited to the Turing and later architectures. Full list of
# supported GPUs is at:
# https://github.com/NVIDIA/open-gpu-kernel-modules#compatible-gpus
# Only available from driver 515.43.04+
# Currently alpha-quality/buggy, so false is currently the recommended setting.
open = false;
nvidiaSettings = true;
prime = {
amdgpuBusId = "PCI:4:0:0";
nvidiaBusId = "PCI:1:0:0";
offload = {
enable = true;
enableOffloadCmd = true;
};
};
};
# Fonts
fonts = {
packages = with pkgs; [
symbola
noto-fonts
noto-fonts-cjk-sans
noto-fonts-emoji
fira-code
fira-code-symbols
jetbrains-mono
# Nerd fonts
(nerdfonts.override {
fonts = [ "FiraCode" "JetBrainsMono" ];
})
];
enableDefaultPackages = false;
};
} }

View file

@ -93,7 +93,7 @@
search = { search = {
force = true; force = true;
default = "SearXNG"; default = "SearXNG";
order = [ "SearXNG" "Google" "Wikipedia" "Nix Packages" "NixOS Wiki" ]; order = [ "SearXNG" "Google" "Wikipedia" "Nix Packages" "NixOS Options" "NixOS Wiki" ];
engines = { engines = {
# Nix Package Search # Nix Package Search
"Nix Packages" = { "Nix Packages" = {
@ -107,6 +107,18 @@
icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg"; icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@np" ]; definedAliases = [ "@np" ];
}; };
# NixOS Options Search
"NixOS Options" = {
urls = [{
template = "https://search.nixos.org/options";
params = [
{ name = "type"; value = "packages"; }
{ name = "query"; value = "{searchTerms}"; }
];
}];
icon = "''${pkgs.nixos-icons}/share/icons/hicolor/scalable/apps/nix-snowflake.svg";
definedAliases = [ "@no" ];
};
# NixOS Wiki Search # NixOS Wiki Search
"NixOS Wiki" = { "NixOS Wiki" = {
urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }]; urls = [{ template = "https://nixos.wiki/index.php?search={searchTerms}"; }];

View file

@ -8,9 +8,6 @@
# Tailsccale # Tailsccale
tailscale tailscale
# Fonts
fira-code-nerdfont
# KDE Packages # KDE Packages
kdePackages.kate kdePackages.kate
kdePackages.elisa kdePackages.elisa

View file

@ -22,6 +22,13 @@
kwin = { kwin = {
edgeBarrier = 0; # Disables the highlighting when approaching an edge with an effect edgeBarrier = 0; # Disables the highlighting when approaching an edge with an effect
cornerBarrier = false; cornerBarrier = false;
effects = {
blur.enable = true;
shakeCursor.enable = false;
translucency.enable = true;
wobblyWindows.enable = true;
};
}; };
kscreenlocker = { kscreenlocker = {

View file

@ -0,0 +1,14 @@
{ ... }:
{
programs.btop = {
enable = true;
settings = {
color_theme = "Dracula";
theme_background = false;
truecolor = true;
shown_boxes = "proc cpu mem net gpu0";
update_ms = 100;
};
};
}

View file

@ -4,5 +4,6 @@
./zsh.nix ./zsh.nix
./starship.nix ./starship.nix
./konsole.nix ./konsole.nix
./btop.nix
]; ];
} }

View file

@ -20,6 +20,8 @@
pager = "delta"; pager = "delta";
default-command = "log"; default-command = "log";
editor = "codium --wait";
diff = { diff = {
format = "git"; format = "git";
}; };

View file

@ -9,8 +9,16 @@
mutableExtensionsDir = false; mutableExtensionsDir = false;
extensions = with inputs.vscode-extensions.extensions."${system}".open-vsx; [ extensions = with inputs.vscode-extensions.extensions."${system}".open-vsx; [
rust-lang.rust-analyzer # Language servers
jnoortheen.nix-ide rust-lang.rust-analyzer # Rust
llvm-vs-code-extensions.vscode-clangd # C++
vadimcn.vscode-lldb # C++ Debugging
jnoortheen.nix-ide # Nix
tamasfe.even-better-toml # TOML
# Theming
pkief.material-icon-theme # Material icons
# Utilities
streetsidesoftware.code-spell-checker # Spellchecking
]; ];
userSettings = { userSettings = {

1
result
View file

@ -1 +0,0 @@
/nix/store/8r0ifgzrfwls4lv0kimklysq8scjsnmw-beautyline-garuda-04052024