Formatting

This commit is contained in:
Jurn Wubben 2025-05-24 00:22:30 +02:00
parent 84663b7c20
commit 0fb8d131bf
6 changed files with 84 additions and 70 deletions

View file

@ -18,7 +18,8 @@ in {
pkgs.wl-clipboard pkgs.wl-clipboard
]; ];
home.sessionVariables = mkIf cfg { #FIXME: migrate to hyprconf home.sessionVariables = mkIf cfg {
#FIXME: migrate to hyprconf
QT_QPA_PLATFORM = "wayland"; QT_QPA_PLATFORM = "wayland";
SDL_VIDEODRIVER = "wayland"; SDL_VIDEODRIVER = "wayland";
XDG_SESSION_TYPE = "wayland"; XDG_SESSION_TYPE = "wayland";

View file

@ -1,4 +1,8 @@
{lib, osConfig, ...}: { {
lib,
osConfig,
...
}: {
wayland.windowManager.hyprland.settings = { wayland.windowManager.hyprland.settings = {
xwayland = { xwayland = {
force_zero_scaling = true; force_zero_scaling = true;
@ -89,14 +93,15 @@
vrr = 1; vrr = 1;
}; };
windowrule = [ windowrule =
"float, class:com.github.phase1geo.annotator" [
"float, class:foot-somcli" "float, class:com.github.phase1geo.annotator"
"size >30% >30%, class:foot-somcli" "float, class:foot-somcli"
] ++ lib.optionals osConfig.niksos.fingerprint [ "size >30% >30%, class:foot-somcli"
"float, class:foot-fprintd" ]
]; ++ lib.optionals osConfig.niksos.fingerprint [
#NOTE: Also check home/wayland/hyprland/binds + system/hardware/fingerprint "float, class:foot-fprintd"
];
#NOTE: Also check home/wayland/hyprland/binds + system/hardware/fingerprint
}; };
} }

View file

@ -1,4 +1,4 @@
{osConfig, ...}:{ {osConfig, ...}: {
services.mako = { services.mako = {
enable = osConfig.niksos.desktop.hyprland; enable = osConfig.niksos.desktop.hyprland;
settings.defaultTimeout = 5000; settings.defaultTimeout = 5000;

View file

@ -55,9 +55,9 @@ in {
niksos = { niksos = {
desktop = { desktop = {
enable = true; enable = true;
hyprland = true; hyprland = true;
}; };
neovim = true; neovim = true;
}; };

View file

@ -10,10 +10,18 @@
niksos = { niksos = {
bluetooth = false; bluetooth = false;
desktop = { enable = false; hyprland = false; kde = false; }; desktop = {
enable = false;
hyprland = false;
kde = false;
};
fingerprint = false; fingerprint = false;
games = false; games = false;
graphics = { enable = false; intel = false; nvidia = false; }; graphics = {
enable = false;
intel = false;
nvidia = false;
};
neovim = false; neovim = false;
portable = false; portable = false;
server = false; server = false;

View file

@ -8,61 +8,61 @@
in { in {
options.niksos.games = lib.mkEnableOption "gaming related stuff."; options.niksos.games = lib.mkEnableOption "gaming related stuff.";
config = lib.mkIf cfg { config = lib.mkIf cfg {
# nixpkgs.overlays = [ # nixpkgs.overlays = [
# (final: prev: let # (final: prev: let
# version = "1.4.2"; # version = "1.4.2";
# hash = "sha256-xe0qlbtt06CUK8bXyaGDtCcHOXpSnkbuvcxaDJjeS/c="; # hash = "sha256-xe0qlbtt06CUK8bXyaGDtCcHOXpSnkbuvcxaDJjeS/c=";
# npmHash = "sha256-/+NhlQydGS6+2jEjpbwycwKplVo/++wcdPiBNY3R3FI="; # npmHash = "sha256-/+NhlQydGS6+2jEjpbwycwKplVo/++wcdPiBNY3R3FI=";
# cargoHash = "sha256-VwzGbm34t7mg9ndmTkht6Ho32NQ+6uxuPTKi3+VrhYo="; # cargoHash = "sha256-VwzGbm34t7mg9ndmTkht6Ho32NQ+6uxuPTKi3+VrhYo=";
# in { # in {
# gale = prev.gale.overrideAttrs (new: old: { # gale = prev.gale.overrideAttrs (new: old: {
# src = prev.fetchFromGitHub { # src = prev.fetchFromGitHub {
# inherit version hash; # inherit version hash;
# owner = "Kesomannen"; # owner = "Kesomannen";
# repo = "gale"; # repo = "gale";
# rev = "1.4.2"; # rev = "1.4.2";
# }; # };
# npmDeps = prev.fetchNpmDeps { # npmDeps = prev.fetchNpmDeps {
# hash = npmHash; # hash = npmHash;
# name = "${new.pname}-${new.version}-npm-deps"; # name = "${new.pname}-${new.version}-npm-deps";
# inherit (new) src; # inherit (new) src;
# }; # };
# cargoDeps = prev.rustPlatform.fetchCargoVendor { # cargoDeps = prev.rustPlatform.fetchCargoVendor {
# inherit # inherit
# (new) # (new)
# pname # pname
# version # version
# src # src
# cargoRoot # cargoRoot
# ; # ;
# hash = cargoHash; # hash = cargoHash;
# }; # };
# }); # });
# }) # })
# ]; # ];
programs = { programs = {
gamescope = { gamescope = {
enable = true; enable = true;
capSysNice = true; capSysNice = true;
args = [ args = [
"--rt" "--rt"
"--expose-wayland" "--expose-wayland"
]; ];
};
steam = {
enable = true;
extraCompatPackages = [
pkgs.proton-ge-bin
];
gamescopeSession.enable = true;
};
}; };
environment.variables = {
"STEAM_FORCE_DESKTOP_UI_SCALING" = "1.5"; #FIXME:. steam = {
enable = true;
extraCompatPackages = [
pkgs.proton-ge-bin
];
gamescopeSession.enable = true;
}; };
}; };
environment.variables = {
"STEAM_FORCE_DESKTOP_UI_SCALING" = "1.5"; #FIXME:.
};
};
} }