From 0e69d956f5fc20546d0a96a3891d6dd29942468b Mon Sep 17 00:00:00 2001 From: polwex Date: Fri, 31 Jan 2025 01:55:31 +0700 Subject: config for wayland on nvidia --- hosts/local/i3.nix | 74 +++++++++++++++++++++++++++++++----------------------- 1 file changed, 42 insertions(+), 32 deletions(-) (limited to 'hosts/local/i3.nix') diff --git a/hosts/local/i3.nix b/hosts/local/i3.nix index 50b9afa..a45c3c1 100644 --- a/hosts/local/i3.nix +++ b/hosts/local/i3.nix @@ -27,9 +27,15 @@ # gnome stuff services.gvfs.enable = true; programs.dconf.enable = true; + # screen tearing + services.picom = { + enable = true; + vSync = true; + }; environment.systemPackages = with pkgs; [ + #notifications + dunst # gnome stuff - gnome.adwaita-icon-theme nautilus polybar rofi @@ -40,6 +46,7 @@ # screenshots flameshot shutter + xclip maim kitty @@ -49,6 +56,8 @@ brave gimp vlc + mpv + celluloid thunderbird kmail firefox @@ -91,36 +100,37 @@ defaultFonts.sansSerif = ["DejaVu Sans"]; defaultFonts.serif = ["DejaVu Serif" "Source Han Serif SC"]; }; - packages = with pkgs; [ - fira-code - fira - cooper-hewitt - ibm-plex - jetbrains-mono - iosevka - spleen - fira-code-symbols - powerline-fonts - nerdfonts - arphic-ukai - arphic-uming - dejavu_fonts - font-awesome - inconsolata # monospaced - noto-fonts - noto-fonts-cjk-sans - noto-fonts-emoji - noto-fonts-extra - powerline-fonts - source-han-sans-japanese - source-han-sans-korean - source-han-sans-simplified-chinese - source-han-sans-traditional-chinese - source-sans-pro - ubuntu_font_family - wqy_microhei - wqy_zenhei - ]; + packages = with pkgs; + [ + fira-code + fira + cooper-hewitt + ibm-plex + jetbrains-mono + iosevka + spleen + fira-code-symbols + powerline-fonts + arphic-ukai + arphic-uming + dejavu_fonts + font-awesome + inconsolata # monospaced + noto-fonts + noto-fonts-cjk-sans + noto-fonts-emoji + noto-fonts-extra + powerline-fonts + source-han-sans-japanese + source-han-sans-korean + source-han-sans-simplified-chinese + source-han-sans-traditional-chinese + source-sans-pro + ubuntu_font_family + wqy_microhei + wqy_zenhei + ] + ++ builtins.filter lib.attrsets.isDerivation (builtins.attrValues pkgs.nerd-fonts); }; # screen capture @@ -133,7 +143,7 @@ ## Remove sound.enable or set it to false if you had it set previously, as sound.enable is only meant for ALSA-based configurations # rtkit is optional but recommended - hardware.pulseaudio.enable = false; + services.pulseaudio.enable = false; security.rtkit.enable = true; services.pipewire = { enable = true; -- cgit v1.2.3 From 59ab4467b69f3ba455ef23163cfc4543338d8a41 Mon Sep 17 00:00:00 2001 From: polwex Date: Fri, 21 Feb 2025 15:57:54 +0700 Subject: m --- hosts/local/i3.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'hosts/local/i3.nix') diff --git a/hosts/local/i3.nix b/hosts/local/i3.nix index a45c3c1..ba84982 100644 --- a/hosts/local/i3.nix +++ b/hosts/local/i3.nix @@ -12,11 +12,13 @@ extraPackages = with pkgs; [ dmenu i3status + i3status-rust i3lock i3blocks ]; }; }; + # TODO check autotiling services.displayManager.defaultSession = "none+i3"; environment.sessionVariables = { @@ -51,16 +53,23 @@ kitty alacritty + ghostty signal-desktop tdesktop brave gimp vlc + # mpv celluloid + ffmpeg-full + nv-codec-headers + # + smplayer thunderbird kmail firefox + vivaldi chromium pavucontrol # icons @@ -158,5 +167,9 @@ # pipewire requires these off # sound.enable = true; # hardware.pulseaudio.enable = true; - # hardware.bluetooth.enable = true; + hardware.bluetooth = { + enable = true; + powerOnBoot = true; + }; + services.blueman.enable = true; } -- cgit v1.2.3