chore: lots of changes, bluetooth enabled, attempt to make configs more navigatable

This commit is contained in:
Ruben 2024-04-22 09:33:04 -05:00
commit c84cce2f88
No known key found for this signature in database
GPG key ID: AE181294E97E4802
4 changed files with 174 additions and 66 deletions

View file

@ -76,17 +76,9 @@
theme = "bgrt";
};
# opengl and graphics settings
# https://nixos.wiki/wiki/Accelerated_Video_Playback
hardware.opengl = {
enable = true;
extraPackages = with pkgs; [
intel-media-driver # LIBVA_DRIVER_NAME=iHD
intel-vaapi-driver # LIBVA_DRIVER_NAME=i965 (older but works better for Firefox/Chromium)
libvdpau-va-gl
];
};
environment.sessionVariables = { LIBVA_DRIVER_NAME = "iHD"; }; # Force intel-media-driver
# enables support for Bluetooth
# https://nixos.wiki/wiki/Bluetooth
hardware.bluetooth.enable = true;
# Enable CUPS to print documents.
services.printing = {

View file

@ -1,11 +1,13 @@
# ╭───────────────────────────────────────────╮
# │ _ _ │
# │ __ __ _| |_ _ __ _ __ _ _ __ __(_)_ _ │
# │ / _/ _` | _| '_ \ '_ \ || / _/ _| | ' \ │
# │ \__\__,_|\__| .__/ .__/\_,_\__\__|_|_||_| │
# │ |_| |_| │
# │ catppuccin │
# ╰───────────────────────────────────────────╯
# ╭──────────────────────────────────────────────────────────────╮
# │ _ _ _ _ │
# │ _ __| |__ _ ____ __ __ _ ___ __| |___ __| |_| |_ ___ _ __ │
# │ | '_ \ / _` (_-< ' \/ _` |___/ _` / -_|_-< / / _/ _ \ '_ \ │
# │ | .__/_\__,_/__/_|_|_\__,_| \__,_\___/__/_\_\\__\___/ .__/ │
# │ |_| |_| │
# │ plasma-desktop (plasma-manager) │
# │ generated and modified via rc2nix from: │
# │ https://github.com/pjones/plasma-manager/ │
# ╰──────────────────────────────────────────────────────────────╯
{
inputs,
lib,
@ -14,44 +16,54 @@
pkgs,
...
}: {
programs.plasma = {
workspace = {
clickItemTo = "select";
lookAndFeel = "Catppuccin-Mocha-Green";
cursorTheme = "Bibata-Modern-Ice";
iconTheme = "Papirus-Dark";
};
hotkeys.commands."launch-kitty" = {
name = "Launch Kitty";
key = "Meta+Enter";
command = "kitty";
};
programs.plasma = {
enable = true;
shortcuts = {
plasmashell = {
"Show Activity Switcher" = "Meta+`";
};
kwin = {
"Close Window" = [ "Alt+F4" "Meta+Q" ];
"Switch to Desktop 1" = "Meta+1";
"Switch to Desktop 2" = "Meta+2";
"Switch to Desktop 3" = "Meta+3";
"Switch to Desktop 4" = "Meta+4";
"Switch to Desktop 5" = "Meta+5";
"Window to Desktop 1" = "Meta+Ctrl+1";
"Window to Desktop 2" = "Meta+Ctrl+2";
"Window to Desktop 3" = "Meta+Ctrl+3";
"Window to Desktop 4" = "Meta+Ctrl+4";
"Window to Desktop 5" = "Meta+Ctrl+5";
};
"kwin"."Cube" = "Meta+C";
"kwin"."Overview" = "Meta+W";
"kwin"."Switch to Desktop 1" = "Meta+1";
"kwin"."Switch to Desktop 2" = "Meta+2";
"kwin"."Switch to Desktop 3" = "Meta+3";
"kwin"."Switch to Desktop 4" = "Meta+4";
"kwin"."Switch to Desktop 5" = "Meta+5";
"kwin"."Window Close" = ["Alt+F4" "Meta+Q"];
"kwin"."Window to Desktop 1" = "Meta+Ctrl+1";
"kwin"."Window to Desktop 2" = "Meta+Ctrl+2";
"kwin"."Window to Desktop 3" = "Meta+Ctrl+3";
"kwin"."Window to Desktop 4" = "Meta+Ctrl+4";
"kwin"."Window to Desktop 5" = "Meta+Ctrl+5";
"services/kitty.desktop"."_launch" = "Meta+Return";
"services/org.kde.spectacle.desktop"."ActiveWindowScreenShot" = "Meta+Print";
"services/org.kde.spectacle.desktop"."FullScreenScreenShot" = "Meta+Ctrl+Print";
"services/org.kde.spectacle.desktop"."RectangularRegionScreenShot" = "Print";
};
configFile = {
"kwinrc"."Desktops"."Number" = {
value = 5;
};
"dolphinrc"."KFileDialog Settings"."Places Icons Auto-resize".value = false;
"dolphinrc"."KFileDialog Settings"."Places Icons Static Size".value = 16;
"dolphinrc"."PlacesPanel"."IconSize".value = 16;
"kdeglobals"."General"."XftHintStyle".value = "hintslight";
"kdeglobals"."General"."XftSubPixel".value = "none";
"kdeglobals"."General"."fixed".value = "JetBrainsMono Nerd Font,11,-1,5,400,0,0,0,0,0,0,0,0,0,0,1";
"kdeglobals"."General"."font".value = "Lexend,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1";
"kdeglobals"."General"."menuFont".value = "Lexend,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1";
"kdeglobals"."General"."smallestReadableFont".value = "Lexend,8,-1,5,400,0,0,0,0,0,0,0,0,0,0,1";
"kdeglobals"."General"."toolBarFont".value = "Lexend,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1";
"kdeglobals"."WM"."activeFont".value = "Lexend,10,-1,5,400,0,0,0,0,0,0,0,0,0,0,1";
"kwinrc"."Desktops"."Number".value = 5;
"kwinrc"."Desktops"."Rows".value = 1;
"kwinrc"."NightColor"."Active".value = true;
"kwinrc"."Plugins"."blurEnabled".value = true;
"kwinrc"."Plugins"."contrastEnabled".value = true;
"kwinrc"."Plugins"."cubeEnabled".value = true;
"kwinrc"."Plugins"."dimscreenEnabled".value = true;
"kwinrc"."Plugins"."magiclampEnabled".value = true;
"kwinrc"."Plugins"."shakecursorEnabled".value = true;
"kwinrc"."Plugins"."sheetEnabled".value = true;
"kwinrc"."Plugins"."squashEnabled".value = false;
"kwinrc"."Plugins"."translucencyEnabled".value = true;
"kwinrc"."Plugins"."wobblywindowsEnabled".value = true;
};
};
}

View file

@ -44,6 +44,11 @@
xdg.userDirs.enable = true;
# this is a got damn NEO VIMME HOUSE !!
home.sessionVariables = {
EDITOR = "nvim";
};
# dotfiles
# modified zsh plugins
home.file.".config/zsh" = {

View file

@ -14,10 +14,17 @@
pkgs,
...
}: {
# ╭───────────────────────────────╮
# │ _ _ │
# │ _ _ (_)_ ___ __| |____ _ ___ │
# │ | ' \| \ \ / '_ \ / / _` (_-< │
# │ |_||_|_/_\_\ .__/_\_\__, /__/ │
# │ |_| |___/ │
# │ user nixpkgs │
# ╰───────────────────────────────╯
# Add stuff for your user as you see fit:
programs.neovim.enable = true;
home.packages = with pkgs; [
btop
bat
duf
fastfetch
@ -38,6 +45,7 @@
imagemagick
figlet
yt-dlp
wgcf
mpdris2
firefox
@ -73,7 +81,6 @@
protontricks
mpv
mpdris2
nextcloud-client
watchmate
obs-studio
@ -91,7 +98,13 @@
#})
];
# my preferred shell customized to my needs
# ╭──────────────╮
# │ _ │
# │ _____| |_ │
# │ |_ (_-< ' \ │
# │ /__/__/_||_| │
# │ zsh │
# ╰──────────────╯
# thanks to https://github.com/Yumasi/nixos-home/blob/main/zsh.nix
programs.zsh = {
enable = true;
@ -171,20 +184,65 @@
'';
};
# starship prompt
# ╭─────────────────────╮
# │ _ _ │
# │ | |__| |_ ___ _ __ │
# │ | '_ \ _/ _ \ '_ \ │
# │ |_.__/\__\___/ .__/ │
# │ |_| │
# │ btop │
# ╰─────────────────────╯
programs.btop = {
enable = true;
catppuccin.enable = true;
};
# ╭────────────────────╮
# │ __ __ ___ ____ _ │
# │ / _/ _` \ V / _` | │
# │ \__\__,_|\_/\__,_| │
# │ cava │
# ╰────────────────────╯
programs.cava = {
enable = true;
catppuccin.enable = true;
};
# ╭──────────────────────────────────╮
# │ _ _ _ │
# │ __| |_ __ _ _ _ __| |_ (_)_ __ │
# │ (_-< _/ _` | '_(_-< ' \| | '_ \ │
# │ /__/\__\__,_|_| /__/_||_|_| .__/ │
# │ |_| │
# │ starship │
# ╰──────────────────────────────────╯
programs.starship = {
enable = true;
settings = pkgs.lib.importTOML ./config/starship.toml;
catppuccin.enable = true;
};
# fuzzy command finder, required by a decent amount of things
# ╭──────────────╮
# │ __ __ │
# │ / _|___/ _| │
# │ | _|_ / _| │
# │ |_| /__|_| │
# │ fzf │
# ╰──────────────╯
programs.fzf = {
enable = true;
enableZshIntegration = true;
catppuccin.enable = true;
};
# ╭──────────────╮
# │ _ _ │
# │ __ _(_) |_ │
# │ / _` | | _| │
# │ \__, |_|\__| │
# │ |___/ │
# │ git │
# ╰──────────────╯
programs.git = {
enable = true;
@ -200,7 +258,14 @@
};
};
# KITTY !!!!
# ╭──────────────────────╮
# │ _ _ _ _ │
# │ | |_(_) |_| |_ _ _ │
# │ | / / | _| _| || | │
# │ |_\_\_|\__|\__|\_, | │
# │ |__/ │
# │ kitty │
# ╰──────────────────────╯
programs.kitty = {
enable = true;
@ -223,6 +288,13 @@
shellIntegration.enableZshIntegration = true;
};
# ╭─────────────────────────────────────╮
# │ _ _ │
# │ __ _____ __ ___ __| (_)_ _ _ __ │
# │ \ V (_-</ _/ _ \/ _` | | || | ' \ │
# │ \_//__/\__\___/\__,_|_|\_,_|_|_|_| │
# │ vscodium/vscode │
# ╰─────────────────────────────────────╯
programs.vscode = {
enable = true;
package = pkgs.vscodium;
@ -249,12 +321,14 @@
};
};
# this is a got damn NEO VIMME HOUSE !!
home.sessionVariables = {
EDITOR = "nvim";
};
# music!!
# ╭────────────────────╮
# │ _ │
# │ _ __ _ __ __| | │
# │ | ' \| '_ \/ _` | │
# │ |_|_|_| .__/\__,_| │
# │ |_| │
# │ mpd │
# ╰────────────────────╯
services.mpd = {
enable = true;
@ -275,7 +349,13 @@
'';
};
# mpd client
# ╭────────────────────────────────────╮
# │ _ _ __ _ __ _ __ __ _ __ _ __ │
# │ | ' \/ _| ' \| '_ \/ _| '_ \ '_ \ │
# │ |_||_\__|_|_|_| .__/\__| .__/ .__/ │
# │ |_| |_| |_| │
# │ ncmpcpp/mpd client │
# ╰────────────────────────────────────╯
programs.ncmpcpp = {
enable = true;
@ -331,8 +411,27 @@
song_window_title_format = "{%a -}{ %t}";
};
};
# ╭─────────────────────────────────╮
# │ _ _ ___ │
# │ _ __ _ __ __| |_ _(_)__|_ ) │
# │ | ' \| '_ \/ _` | '_| (_-</ / │
# │ |_|_|_| .__/\__,_|_| |_/__/___| │
# │ |_| │
# │ mpdris2/mpd mpris bridge │
# ╰─────────────────────────────────╯
services.mpdris2 = {
enable = true;
};
# mpd discord rich presense
# ╭────────────────────────────────────────────────────────────────────╮
# │ _ _ _ _ │
# │ _ __ _ __ __| |___ __| (_)___ __ ___ _ _ __| |___ _ _ _ __ __ │
# │ | ' \| '_ \/ _` |___/ _` | (_-</ _/ _ \ '_/ _` |___| '_| '_ \/ _| │
# │ |_|_|_| .__/\__,_| \__,_|_/__/\__\___/_| \__,_| |_| | .__/\__| │
# │ |_| |_| │
# │ mpd-discord-rpc │
# ╰────────────────────────────────────────────────────────────────────╯
services.mpd-discord-rpc = {
enable = true;
settings = {