diff --git a/config/nixos.nix b/config/nixos.nix index 745501e..810cef9 100644 --- a/config/nixos.nix +++ b/config/nixos.nix @@ -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 = { diff --git a/users/ruben/desktop.nix b/users/ruben/desktop.nix index 080d168..0a23db5 100644 --- a/users/ruben/desktop.nix +++ b/users/ruben/desktop.nix @@ -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; }; }; } diff --git a/users/ruben/home.nix b/users/ruben/home.nix index 7695302..13714d2 100644 --- a/users/ruben/home.nix +++ b/users/ruben/home.nix @@ -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" = { diff --git a/users/ruben/packages.nix b/users/ruben/packages.nix index a9a5433..3cccc3a 100644 --- a/users/ruben/packages.nix +++ b/users/ruben/packages.nix @@ -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 (_-