From a18dbf318d0c5f44531e0bed7c925dddba4c640f Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sun, 19 Apr 2026 21:36:16 -0400 Subject: [PATCH] add gamescope stuff --- clients/quadraticpc/fht-compositor.nix | 164 ++++++++++++----------- clients/quadraticpc/gamescope.nix | 13 ++ clients/quadraticserver/lasuite-docs.nix | 2 +- flake.lock | 15 +-- flake.nix | 2 +- 5 files changed, 109 insertions(+), 87 deletions(-) create mode 100644 clients/quadraticpc/gamescope.nix diff --git a/clients/quadraticpc/fht-compositor.nix b/clients/quadraticpc/fht-compositor.nix index 3d4442b..55c026e 100644 --- a/clients/quadraticpc/fht-compositor.nix +++ b/clients/quadraticpc/fht-compositor.nix @@ -4,85 +4,97 @@ let in { imports = [ inputs.fht-compositor.nixosModules.default ]; - environment.etc.${filename}.source = (pkgs.formats.toml { }).generate "config.toml" { - autostart = [ "dms run" ]; - - general = { - focus-follows-mouse = true; - inner-gaps = 10; - }; - - decorations = { - border = { - thickness = 4; - radius = 12; - }; - blur.disable = true; - }; - - keybinds = { - Alt-Tab = "focus-next-window"; - Super-f = "fullscreen-focused-window"; - Super-Ctrl-q = "quit"; - Super-Ctrl-r = "reload-config"; - - Super-t = { - action = "run-command"; - arg = "ptyxis"; - }; - Super-e = { - action = "run-command"; - arg = "nautilus"; - }; - - Super-Down = { - action = "change-window-proportion"; - arg = 0.5; - }; - Super-Up = { - action = "change-window-proportion"; - arg = -0.5; - }; - Super-Left = { - action = "change-mwfact"; - arg = -0.1; - }; - Super-Right = { - action = "change-mwfact"; - arg = 0.1; - }; - } - // builtins.listToAttrs ( - builtins.genList (i: { - name = "Super-${toString (i + 1)}"; - value = { - action = "focus-workspace"; - arg = i; - }; - }) 9 - ); - - mousebinds = { - Super-Left = "swap-tile"; - Super-wheeldown = "focus-previous-workspace"; - Super-wheelup = "focus-next-workspace"; - }; - - rules = [ - { - match-app-id = [ ".*" ]; - floating = false; - } + environment = { + systemPackages = with pkgs; [ + grim + slurp ]; - outputs = { - HDMI-A-1.position.x = 0; - DP-3.position.x = 1920; - }; + etc.${filename}.source = (pkgs.formats.toml { }).generate "config.toml" { + autostart = [ "dms run" ]; - cursor = { - name = "GoogleDot-Blue"; - size = 24; + general = { + focus-follows-mouse = true; + inner-gaps = 10; + }; + + decorations = { + border = { + thickness = 4; + radius = 12; + }; + blur.disable = true; + }; + + keybinds = { + Alt-Tab = "focus-next-window"; + Super-f = "fullscreen-focused-window"; + Super-Ctrl-q = "quit"; + Super-Ctrl-r = "reload-config"; + + Print = { + action = "run-command"; + arg = "grim -g \"$(slurp)\" - | gradia"; + }; + + Super-t = { + action = "run-command"; + arg = "ptyxis --new-window"; + }; + Super-e = { + action = "run-command"; + arg = "nautilus"; + }; + + Super-Down = { + action = "change-window-proportion"; + arg = 0.5; + }; + Super-Up = { + action = "change-window-proportion"; + arg = -0.5; + }; + Super-Left = { + action = "change-mwfact"; + arg = -0.1; + }; + Super-Right = { + action = "change-mwfact"; + arg = 0.1; + }; + } + // builtins.listToAttrs ( + builtins.genList (i: { + name = "Super-${toString (i + 1)}"; + value = { + action = "focus-workspace"; + arg = i; + }; + }) 9 + ); + + mousebinds = { + Super-Left = "swap-tile"; + Super-wheeldown = "focus-previous-workspace"; + Super-wheelup = "focus-next-workspace"; + }; + + rules = [ + { + match-app-id = [ ".*" ]; + floating = false; + } + ]; + + outputs = { + HDMI-A-1.position.x = 0; + DP-3.position.x = 1920; + }; + + cursor = { + name = "GoogleDot-Blue"; + size = 24; + }; }; }; diff --git a/clients/quadraticpc/gamescope.nix b/clients/quadraticpc/gamescope.nix new file mode 100644 index 0000000..1cdb9ba --- /dev/null +++ b/clients/quadraticpc/gamescope.nix @@ -0,0 +1,13 @@ +{ + programs = { + steam.gamescopeSession.enable = true; + gamescope = { + enable = true; + args = [ + "-W 2560" + "-H 1440" + "-r 165" + ]; + }; + }; +} diff --git a/clients/quadraticserver/lasuite-docs.nix b/clients/quadraticserver/lasuite-docs.nix index 3ef13bb..b87b821 100644 --- a/clients/quadraticserver/lasuite-docs.nix +++ b/clients/quadraticserver/lasuite-docs.nix @@ -33,7 +33,7 @@ in authDomain = "auth.federated.nexus"; domain = "docs.federated.nexus"; s3Url = "${s3Domain}/lasuite-docs"; - socket = "/run/lasuite-docs/socket"; + socket = "/var/run/lasuite-docs/socket"; in { lasuite-docs-proxy = { diff --git a/flake.lock b/flake.lock index 2720a09..416e74c 100644 --- a/flake.lock +++ b/flake.lock @@ -2241,17 +2241,14 @@ }, "nixpkgs-custom": { "locked": { - "lastModified": 1771522177, - "narHash": "sha256-m62O2bp6ZxPFoZBrd/+fB5Pd4c+pz+7pz4JpqZUZCXw=", - "owner": "Henry-Hiles", - "repo": "nixpkgs", - "rev": "2d68fc5183e52237ef4d5fef93b99f589f9ac201", - "type": "github" + "lastModified": 1776470189, + "narHash": "sha256-kwzsHPt7X5w5dbS5Gi5EWlBpq8hJCi/7Zwlb17OXlG4=", + "path": "/home/quadradical/Documents/Code/nixpkgs", + "type": "path" }, "original": { - "owner": "Henry-Hiles", - "repo": "nixpkgs", - "type": "github" + "path": "/home/quadradical/Documents/Code/nixpkgs", + "type": "path" } }, "nixpkgs-latest": { diff --git a/flake.nix b/flake.nix index c6a43bb..6e2d27e 100755 --- a/flake.nix +++ b/flake.nix @@ -2,7 +2,7 @@ inputs = { gnome-mobile.url = "github:chuangzhu/nixpkgs-gnome-mobile"; nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable"; - nixpkgs-custom.url = "github:Henry-Hiles/nixpkgs"; + nixpkgs-custom.url = "/home/quadradical/Documents/Code/nixpkgs"; wrapper-manager.url = "github:viperML/wrapper-manager"; flake-parts.url = "github:hercules-ci/flake-parts"; nix-maid.url = "github:viperML/nix-maid";