update system

This commit is contained in:
2025-09-19 13:20:35 +02:00
parent 6d296224ce
commit 8198e46252
5 changed files with 13 additions and 48 deletions

View File

@@ -7,6 +7,7 @@
sha256 = "0lghiiiphbkqgiprqirxifldvix0j4k04jh1z9f911shrzjgqq4s"; sha256 = "0lghiiiphbkqgiprqirxifldvix0j4k04jh1z9f911shrzjgqq4s";
} }
]; ];
programs.mpv.enable = true;
home.packages = with pkgs; [ home.packages = with pkgs; [
# nix # nix
cachix cachix
@@ -21,7 +22,6 @@
# media # media
yt-dlp yt-dlp
f3d f3d
mpv
jellyfin-mpv-shim jellyfin-mpv-shim
makemkv makemkv
libfaketime libfaketime

View File

@@ -34,10 +34,8 @@
presets = { presets = {
auto-save.enable = true; auto-save.enable = true;
auto-format.enable = true; auto-format.enable = true;
harpoon.enable = false;
lazygit.enable = true; lazygit.enable = true;
mergetool.enable = true; mergetool.enable = true;
trouble.enable = false;
undotree.enable = true; undotree.enable = true;
aerial.enable = true; aerial.enable = true;
base = { base = {
@@ -46,7 +44,7 @@
copilot = true; copilot = true;
}; };
diagnostics.enable = true; diagnostics.enable = true;
coverage.enable = true; coverage.enable = false;
find.enable = true; find.enable = true;
formatting = { formatting = {
enable = true; enable = true;
@@ -59,9 +57,7 @@
}; };
languages = { languages = {
angular.enable = true; angular.enable = true;
c = { c.enable = true;
enable = true;
};
css = { css = {
enable = true; enable = true;
stylelint = true; stylelint = true;
@@ -90,28 +86,12 @@
plugins = { plugins = {
which-key.enable = true; which-key.enable = true;
schemastore.enable = true; schemastore.enable = true;
comment.enable = true;
debugprint.enable = true;
todo-comments.enable = true; todo-comments.enable = true;
origami.enable = false; origami.enable = false;
nvim-surround.enable = true; nvim-surround.enable = true;
hardtime = {
enable = true;
settings = {
disable_mouse = false;
disabled_keys = {
"<Up>".__raw = "false";
"<Down>".__raw = "false";
"<Left>".__raw = "false";
"<Right>".__raw = "false";
};
};
};
treesitter-context = { treesitter-context = {
enable = false; # TODO: looks weird with Neovide enable = false; # TODO: looks weird with Neovide
settings = { settings.line_numbers = false;
line_numbers = false;
};
}; };
lsp.servers = { lsp.servers = {

View File

@@ -41,7 +41,7 @@ in
}; };
transparency = lib.mkOption { transparency = lib.mkOption {
type = lib.types.numbers.between 0 1; type = lib.types.numbers.between 0 1;
default = 0.8; default = 0.9;
description = "The transparency of apps"; description = "The transparency of apps";
}; };
radius = lib.mkOption { radius = lib.mkOption {

View File

@@ -40,7 +40,6 @@ in
QT_QPA_PLATFORM = "wayland;xcb"; QT_QPA_PLATFORM = "wayland;xcb";
QT_WAYLAND_DISABLE_WINDOWDECORATION = "1"; QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
SDL_VIDEODRIVER = "wayland"; SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
# https://github.com/swaywm/sway/issues/6272 # https://github.com/swaywm/sway/issues/6272
_JAVA_AWT_WM_NONREPARENTING = "1"; _JAVA_AWT_WM_NONREPARENTING = "1";
}; };

View File

@@ -15,31 +15,15 @@ in
enable = mkEnableOption "Enable optimisations for the Gigabyte FV43U monitor"; enable = mkEnableOption "Enable optimisations for the Gigabyte FV43U monitor";
hdr = mkOption { hdr = mkOption {
type = types.bool; type = types.bool;
default = false; default = true;
description = "Enable HDR support for the Gigabyte FV43U monitor."; description = "Enable HDR support for the Gigabyte FV43U monitor.";
}; };
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
fonts.fontconfig.subpixel.rgba = "bgr"; fonts.fontconfig.subpixel.rgba = "bgr";
hardware = { hardware.gbmonctl.enable = true;
gbmonctl.enable = true; boot.kernelParams = [ "video=DP-3:3840x2160-30@144" ];
firmware = [
(pkgs.runCommandNoCC "fv43u_edid" { } ''
mkdir -p $out/lib/firmware/edid
cp ${./fv43u_edid.bin} $out/lib/firmware/edid/fv43u.bin
'')
];
};
boot = {
kernelParams = [
"drm.edid_firmware=DP-3:edid/fv43u.bin"
"video=DP-3:3840x2160-30@144"
];
initrd.extraFiles."lib/firmware/edid/fv43u.bin".source =
pkgs.runCommandLocal "fv43u_edid" { }
"cp ${./fv43u_edid.bin} $out";
};
services.colord.enable = true; services.colord.enable = true;
environment.systemPackages = [ environment.systemPackages = [
(pkgs.runCommandNoCC "fv43u_icc" { } '' (pkgs.runCommandNoCC "fv43u_icc" { } ''
@@ -53,9 +37,11 @@ in
monitorline = "DP-3,3840x2160@144,0x0,1,bitdepth,10,cm,${if cfg.hdr then "hdr" else "srgb"}"; monitorline = "DP-3,3840x2160@144,0x0,1,bitdepth,10,cm,${if cfg.hdr then "hdr" else "srgb"}";
in in
{ {
home.sessionVariables = { programs.mpv.config = {
ENABLE_HDR_WSI = "1"; vo = "gpu-next";
DXVK_HDR = "1"; gpu-api = "vulkan";
gpu-context = "waylandvk";
target-colorspace-hint = "auto";
}; };
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
general.layout = "master"; general.layout = "master";