Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,24 @@ sudo ln -s scopebuddy /usr/local/bin/scb
* Move to /usr/local/bin or /usr/bin
* make scb symlink

### NixOS

#### Using flakes:

Home Manager (flake-based), add an input:

```bash
inputs.scopebuddy.url = "github:HikariKnight/ScopeBuddy";
```

Then add the package:

```bash
home.packages = [
inputs.scopebuddy.packages.${pkgs.system}.default
];
```

## GUI Configuration
TealMango in the Bazzite community has made a GUI tool to configure scopebuddy.
Well worth to check it out here: [ScopeBuddy-GUI](https://github.com/rfrench3/scopebuddy-gui)
46 changes: 46 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
description = "ScopeBuddy – gamescope wrapper for Wayland";

inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";

outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in
{
packages = forAllSystems (system:
let
pkgs = import nixpkgs { inherit system; };
in {
default = pkgs.stdenvNoCC.mkDerivation {
pname = "scopebuddy";
version = "git";
src = self;

nativeBuildInputs = [ pkgs.makeWrapper ];

installPhase = ''
install -Dm755 bin/scopebuddy $out/bin/scopebuddy
ln -s $out/bin/scopebuddy $out/bin/scb

wrapProgram $out/bin/scopebuddy \
--prefix PATH : ${pkgs.lib.makeBinPath [
pkgs.gamescope
pkgs.perl
pkgs.jq
pkgs.wlr-randr
]}
'';
};
}
);

apps = forAllSystems (system: {
default = {
type = "app";
program = "${self.packages.${system}.default}/bin/scopebuddy";
};
});
};
}