diff options
Diffstat (limited to 'nix')
| -rw-r--r-- | nix/amdgpu.nix | 50 | ||||
| -rw-r--r-- | nix/audio.nix | 16 | ||||
| -rw-r--r-- | nix/email.nix | 14 | ||||
| -rw-r--r-- | nix/gaming.nix | 43 | ||||
| -rw-r--r-- | nix/programs/bash.nix | 3 | ||||
| -rw-r--r-- | nix/programs/firefox.nix | 4 | ||||
| -rw-r--r-- | nix/programs/kitty.nix | 2 | ||||
| -rw-r--r-- | nix/programs/nvim.nix | 21 | ||||
| -rw-r--r-- | nix/programs/sunshine.nix | 18 | ||||
| -rw-r--r-- | nix/programs/sway.nix | 33 | ||||
| -rw-r--r-- | nix/scripts.nix | 2 | ||||
| -rw-r--r-- | nix/steam.nix | 6 | ||||
| -rw-r--r-- | nix/user.nix | 17 |
13 files changed, 124 insertions, 105 deletions
diff --git a/nix/amdgpu.nix b/nix/amdgpu.nix index 5cb89c0..3d28b1d 100644 --- a/nix/amdgpu.nix +++ b/nix/amdgpu.nix @@ -23,29 +23,29 @@ capabilities = "cap_perfmon+ep"; }; }; -# https://github.com/sibradzic/amdgpu-clocks -# @TODO: Fetch and patch scripts from the git repo. -# environment.etc = { # XFX RX 6600 -# "default/amdgpu-custom-states.card0".text = '' -# OD_VDDGFX_OFFSET: -# -55mV -# FORCE_POWER_CAP: 120000000 -# FORCE_PERF_LEVEL: auto -# FORCE_POWER_PROFILE: 1 -# ''; -# }; -# environment.systemPackages = [ amdgpu-clocks pkgs.radeontop ]; -# systemd.services.amdgpu-clocks = { -# description = "Set custom amdgpu clocks & voltages"; -# after = [ "multi-user.target" "rc-local.service" "systemd-user-sessions.service" ]; -# wants = [ "modprobe@amdgpu.service" ]; -# wantedBy = [ "multi-user.target" ]; -# serviceConfig = { -# Type = "oneshot"; -# ExecStart = "${amdgpu-clocks}/bin/amdgpu-clocks"; -# ExecStop = "${amdgpu-clocks}/bin/amdgpu-clocks restore"; -# ExecReload = "${amdgpu-clocks}/bin/amdgpu-clocks"; -# RemainAfterExit = true; -# }; -# }; + # https://github.com/sibradzic/amdgpu-clocks + # @TODO: Fetch and patch scripts from the git repo. + #environment.etc = { # XFX RX 6600 + # "default/amdgpu-custom-states.card0".text = '' + # OD_VDDGFX_OFFSET: + # -55mV + # FORCE_POWER_CAP: 120000000 + # FORCE_PERF_LEVEL: auto + # FORCE_POWER_PROFILE: 1 + # ''; + #}; + #environment.systemPackages = [ amdgpu-clocks pkgs.radeontop ]; + #systemd.services.amdgpu-clocks = { + # description = "Set custom amdgpu clocks & voltages"; + # after = [ "multi-user.target" "rc-local.service" "systemd-user-sessions.service" ]; + # wants = [ "modprobe@amdgpu.service" ]; + # wantedBy = [ "multi-user.target" ]; + # serviceConfig = { + # Type = "oneshot"; + # ExecStart = "${amdgpu-clocks}/bin/amdgpu-clocks"; + # ExecStop = "${amdgpu-clocks}/bin/amdgpu-clocks restore"; + # ExecReload = "${amdgpu-clocks}/bin/amdgpu-clocks"; + # RemainAfterExit = true; + # }; + #}; } diff --git a/nix/audio.nix b/nix/audio.nix index da59310..80ef231 100644 --- a/nix/audio.nix +++ b/nix/audio.nix @@ -1,9 +1,9 @@ { pkgs, ... }: { -# hardware.pulseaudio = { -# enable = true; -# support32Bit = true; -# }; -# nixpkgs.config.pulseaudio = true; + #hardware.pulseaudio = { + # enable = true; + # support32Bit = true; + #}; + #nixpkgs.config.pulseaudio = true; services.pipewire = { enable = true; pulse.enable = true; @@ -59,7 +59,7 @@ }; }]; "stream.properties" = { - "resample.quality" = 8; + "resample.quality" = 10; "channelmix.normalize" = false; }; }; @@ -67,7 +67,7 @@ client = { "92-client-user" = { "stream.properties" = { - "resample.quality" = 8; + "resample.quality" = 10; "channelmix.normalize" = false; }; }; @@ -79,7 +79,7 @@ "pulse.default.position" = [ "FL" "FR" ]; }; "stream.properties" = { - "resample.quality" = 8; + "resample.quality" = 10; "channelmix.normalize" = false; }; }; diff --git a/nix/email.nix b/nix/email.nix index c5d9aa3..96924ab 100644 --- a/nix/email.nix +++ b/nix/email.nix @@ -129,13 +129,13 @@ auto_view application/pgp-encrypted alternative_order text/plain text/enriched text/html - color normal cyan black + color normal blue black color attachment brightyellow black - color hdrdefault cyan black - color indicator black cyan + color hdrdefault blue black + color indicator black blue color markers brightred black color quoted green black - color signature cyan black + color signature blue black color status black red color tilde blue black color tree red black @@ -144,9 +144,9 @@ color index magenta black ~T color header brightgreen black ^From: - color header brightcyan black ^To: - color header brightcyan black ^Reply-To: - color header brightcyan black ^Cc: + color header brightblue black ^To: + color header brightblue black ^Reply-To: + color header brightblue black ^Cc: color header brightblue black ^Subject: color body brightred black [\-\.+_a-zA-Z0-9]+@[\-\.a-zA-Z0-9]+ diff --git a/nix/gaming.nix b/nix/gaming.nix index 7aab7d8..e86cd61 100644 --- a/nix/gaming.nix +++ b/nix/gaming.nix @@ -41,33 +41,32 @@ in { #}; }; }; -# chaotic.mesa-git.enable = true; programs.gamescope = { enable = true; package = pkgs.gamescope; capSysNice = true; }; -# services.ananicy = { -# enable = true; -# #package = pkgs.ananicy-cpp; -# settings = { -# apply_nice = true; -# }; -# extraTypes = [ -# { type = "realtime"; nice = -20; } -# ]; -# extraRules = [ -# { name = "gamescope"; type = "realtime"; } -# ]; -# }; -# security.wrappers = { -# gamescope = { -# owner = "root"; -# group = "root"; -# source = "${pkgs.gamescope}/bin/gamescope"; -# capabilities = "cap_sys_nice+eip"; -# }; -# }; + #services.ananicy = { + # enable = true; + # #package = pkgs.ananicy-cpp; + # settings = { + # apply_nice = true; + # }; + # extraTypes = [ + # { type = "realtime"; nice = -20; } + # ]; + # extraRules = [ + # { name = "gamescope"; type = "realtime"; } + # ]; + #}; + #security.wrappers = { + # gamescope = { + # owner = "root"; + # group = "root"; + # source = "${pkgs.gamescope}/bin/gamescope"; + # capabilities = "cap_sys_nice+eip"; + # }; + #}; home-manager.users.andrew = let homeDir = "${config.users.users.andrew.home}"; in { diff --git a/nix/programs/bash.nix b/nix/programs/bash.nix index 4fb9cd3..571b4fe 100644 --- a/nix/programs/bash.nix +++ b/nix/programs/bash.nix @@ -47,6 +47,7 @@ NORMAL="\001\033[0m\002" YELLOW="\001\033[0;33m\002" BLUE="\001\033[0;34m\002" + MAGENTA="\001\033[0;35m\002" CYAN="\001\033[0;36m\002" RED="\001\033[0;31m\002" exit_code_guy() @@ -57,7 +58,7 @@ printf "(″ロ゛) >" fi } - export PS1="$RESET$BLUE\u@$CYAN\H$BLUE:\w\$(exit_code_guy)$NORMAL " + export PS1="$RESET$MAGENTA\u@$CYAN\H$MAGENTA:\w\$(exit_code_guy)$NORMAL " ''; }; }; diff --git a/nix/programs/firefox.nix b/nix/programs/firefox.nix index fd10f99..9364d29 100644 --- a/nix/programs/firefox.nix +++ b/nix/programs/firefox.nix @@ -19,8 +19,8 @@ in { source = (pkgs.fetchFromGitHub { owner = "rafaelmardojai"; repo = "firefox-gnome-theme"; - rev = "6b2061ac6faf5dfb52d5b41dca98fa0c022b2b91"; - hash = "sha256-c3oiw6RysUVxRqkv39gxhiO1WjfvuEzZw4PemN0C7Kk="; + rev = "4eb2714fbed2b80e234312611a947d6cb7d70caf"; + hash = "sha256-pGvD/RGuuPf/4oogsfeRaeMm6ipUIznI2QSILKjKzeA="; }); }; home.file."customChrome.css" = { diff --git a/nix/programs/kitty.nix b/nix/programs/kitty.nix index 74b6c6a..f3c11a4 100644 --- a/nix/programs/kitty.nix +++ b/nix/programs/kitty.nix @@ -28,11 +28,13 @@ in { initial_window_width 720 initial_window_height 480 resize_debounce_time 0.025 0.5 + window_padding_width 1 placement_strategy top-left scrollback_lines 3000 paste_actions confirm,confirm-if-large disable_ligatures always modify_font baseline ${toString loc.font.baseline} + modify_font cell_height ${toString loc.font.cell-height-offset} cursor_shape block #cursor_blink_interval -1 linear ease-out #cursor_stop_blinking_after 20.0 diff --git a/nix/programs/nvim.nix b/nix/programs/nvim.nix index b12ad52..3cdf12e 100644 --- a/nix/programs/nvim.nix +++ b/nix/programs/nvim.nix @@ -43,10 +43,10 @@ let hi Added guifg=#${colo.color2} hi Changed guifg=#${colo.color3} hi ColorColumn guibg=#${colo.color6} - hi Conceal guifg=#${colo.color6} + hi Conceal guifg=#${colo.color5} hi CurSearch guifg=#${colo.background} guibg=#${colo.color4} hi CursorColumn guibg=#${colo.background} - hi CursorLine guibg=#${colo.color4} + hi CursorLine guibg=#${colo.color5} hi DiffAdd guifg=#${colo.color2} guibg=#${colo.background} hi DiffChange guifg=#${colo.color3} guibg=#${colo.background} hi DiffDelete guifg=#${colo.color1} guibg=#${colo.background} gui=bold @@ -56,23 +56,23 @@ let hi FloatShadow guibg=#${colo.color6} blend=80 hi FloatShadowThrough guibg=#${colo.color6} blend=100 hi Folded guifg=#${colo.color5} guibg=#${colo.background} - hi LineNr guifg=#${colo.color6} - hi MatchParen guifg=#${colo.color6} guibg=#${colo.background} gui=bold + hi LineNr guifg=#${colo.color2} + hi MatchParen guifg=#${colo.color2} guibg=#${colo.background} gui=bold hi ModeMsg guifg=#${colo.color4} hi MoreMsg guifg=#${colo.color2} hi NonText guifg=#${colo.color6} - hi NormalFloat guibg=#${colo.color4} - hi Pmenu guibg=#${colo.color4} - hi PmenuThumb guibg=#${colo.color5} - hi PmenuSel guibg=#${colo.color4} " Font color. - hi PmenuSbar guibg=#${colo.color4} + hi NormalFloat guibg=#${colo.color5} + hi Pmenu guibg=#${colo.color5} + hi PmenuThumb guibg=#${colo.color4} + hi PmenuSel guibg=#${colo.color5} " Font color. + hi PmenuSbar guibg=#${colo.color5} hi Question guifg=#${colo.color3} hi QuickFixLine guifg=#${colo.color3} hi RedrawDebugClear guibg=#${colo.color2} hi RedrawDebugComposed guibg=#${colo.background} hi RedrawDebugRecompose guibg=#${colo.color3} hi Removed guifg=#${colo.color1} - hi Search guifg=#${colo.foreground} guibg=#${colo.color3} + hi Search guifg=#${colo.foreground} guibg=#${colo.color1} hi SignColumn guifg=#${colo.color6} hi SpecialKey guifg=#${colo.color6} hi SpellBad guisp=#${colo.color1} gui=undercurl @@ -181,6 +181,7 @@ in { starter.gen_hook.aligning('center', 'center') }, top_padding = ${toString s.top_padding}, + header = '${s.header}', footer = '${s.footer}', footer_offset = ${toString s.footer-offset}, picture = { diff --git a/nix/programs/sunshine.nix b/nix/programs/sunshine.nix index 6820f06..dff4d97 100644 --- a/nix/programs/sunshine.nix +++ b/nix/programs/sunshine.nix @@ -1,5 +1,5 @@ { pkgs, ... }: { -# environment.systemPackages = with pkgs; [ sunshine ]; + #environment.systemPackages = with pkgs; [ sunshine ]; services.sunshine = { enable = true; capSysAdmin = true; @@ -18,12 +18,12 @@ ]; }; }; -# security.wrappers = { -# sunshine = { -# owner = "root"; -# group = "root"; -# source = "${pkgs.sunshine}/bin/sunshine"; -# capabilities = "cap_sys_admin+p"; -# }; -# }; + #security.wrappers = { + # sunshine = { + # owner = "root"; + # group = "root"; + # source = "${pkgs.sunshine}/bin/sunshine"; + # capabilities = "cap_sys_admin+p"; + # }; + #}; } diff --git a/nix/programs/sway.nix b/nix/programs/sway.nix index 84fa903..07f8d2c 100644 --- a/nix/programs/sway.nix +++ b/nix/programs/sway.nix @@ -6,6 +6,7 @@ in { services.xserver.videoDrivers = [ "modesetting" ]; programs.sway = { enable = true; + package = pkgs.swayfx; extraPackages = with pkgs; [ libinput swaybg @@ -40,17 +41,17 @@ in { extraPortals = [ pkgs.xdg-desktop-portal-gtk ]; }; xdg.icons.enable = true; -# services.getty.autologinUser = "andrew"; -# services.greetd = { -# enable = false; -# settings = { -# vt=3; -# default_session = { -# command = "run-sway"; -# user = "root"; -# }; -# }; -# }; + #services.getty.autologinUser = "andrew"; + #services.greetd = { + # enable = false; + # settings = { + # vt=3; + # default_session = { + # command = "run-sway"; + # user = "root"; + # }; + # }; + #}; qt = { enable = true; platformTheme = "qt5ct"; # Also selects qt6ct. @@ -284,7 +285,7 @@ in { commands = [ { command = "move to scratchpad"; criteria.app_id = "kitty-server"; } { command = "allow_tearing yes"; criteria.app_id = "kitty"; } - { command = "inhibit_idle fullscreen; floating enable; allow_tearing yes"; criteria.app_id = "cmv"; } + { command = "inhibit_idle fullscreen; floating enable"; criteria.app_id = "cmv"; } { command = "floating enable"; criteria.class = "cmv.exe"; } { command = "floating enable"; criteria.app_id = "mauri"; } { command = "inhibit_idle fullscreen"; criteria.title = "Parsec"; } @@ -298,6 +299,7 @@ in { { command = "inhibit_idle fullscreen; allow_tearing yes"; criteria.title = "Overwatch"; } { command = "inhibit_idle fullscreen"; criteria.class = "Ryujinx"; } { command = "inhibit_idle fullscreen"; criteria.app_id = "org.yuzu_emu.yuzu"; } + { command = "inhibit_idle fullscreen"; criteria.app_id = "info.cemu.Cemu"; } { command = "inhibit_idle fullscreen"; criteria.class = "dolphin-emu"; } { command = "inhibit_idle fullscreen"; criteria.class = "AppRun"; } # Ishiiruka-Dolphin { command = "inhibit_idle fullscreen"; criteria.class = "SuperMeatBoy"; } @@ -326,6 +328,13 @@ in { { command = "wlsunset-toggle"; } ]; }; + extraConfig = '' + blur enable + blur_passes 4 + blur_radius 2 + blur_contrast 1.5 + blur_saturation 1.1 + ''; }; services.swayidle = { enable = true; diff --git a/nix/scripts.nix b/nix/scripts.nix index c965157..8fac0a3 100644 --- a/nix/scripts.nix +++ b/nix/scripts.nix @@ -12,7 +12,7 @@ in { environment.systemPackages = with pkgs; [ (writeShellScriptBin "bemenu-colored" '' bemenu -C --single-instance -B 0 -M 0 --hp 6 \ - --fn "${loc.font.name} ${toString (loc.font.size - 1)}" -H ${toString ((loc.font.size - 1) * 2)} \ + --fn "${loc.font.name} ${toString (loc.font.size - 1)}" -H ${toString ((loc.font.size * 2) - 1)} \ --cf "#${colo.foreground}" --cb "#${colo.background}" \ --hf "#${colo.background}" --hb "#${colo.color4}" \ --nf "#${colo.foreground}" --nb "#${colo.background}" \ diff --git a/nix/steam.nix b/nix/steam.nix index 9ecb21f..66d675f 100644 --- a/nix/steam.nix +++ b/nix/steam.nix @@ -20,7 +20,7 @@ in { export VKD3D_SHADER_DEBUG=none export mesa_glthread=true xrandr --output ${loc.monitors.monitor1} --primary - exec env --unset=SDL_VIDEODRIVER --unset=SDL_VIDEO_DRIVER mangohud gamemoderun "$@" + exec env --unset=SDL_VIDEODRIVER --unset=SDL_VIDEO_DRIVER MANGOHUD=1 gamemoderun "$@" '') ]; programs.steam = { @@ -38,9 +38,9 @@ in { "--rt" "-f" "-e" -# "-o 10" + #"-o 10" "--adaptive-sync" -# "--force-grab-cursor" + #"--force-grab-cursor" "--mangoapp" ]; }; diff --git a/nix/user.nix b/nix/user.nix index 076bad3..91a6e6b 100644 --- a/nix/user.nix +++ b/nix/user.nix @@ -35,12 +35,16 @@ in { fontconfig = { enable = true; includeUserConf = false; - antialias = true; - hinting.enable = false; allowBitmaps = true; + cache32Bit = true; + antialias = true; + hinting = { + enable = false; + style = "slight"; + }; subpixel = { - rgba = "none"; - lcdfilter = "default"; + rgba = "rgb"; + lcdfilter = "light"; }; defaultFonts = { serif = [ loc.ui-font.name ]; @@ -65,9 +69,12 @@ in { (python3.withPackages (python-pkgs: [ python-pkgs.requests python-pkgs.beautifulsoup4 ])) htop neofetch + ufetch (asNeeded "cmatrix" ["cmatrix"]) hdparm - dcfldd + #dcfldd + ddrescue + cdrtools usbutils cryptsetup (asNeeded "nix-index" ["nix-channel-index" "nix-index" "nix-locate"]) |