This commit is contained in:
4DBug committed 2026-10-17 23:55:49 -05:00
1 parent 409c2be1d6
commit ef19a50302
31 files changed
+710 -124

No files matched your search

+2
View File
@@ -16,6 +16,8 @@
nixfmt
# editors
micro
# terminal
herdr
# net
inetutils
wget
-1
View File
@@ -1,6 +1,5 @@
{
den.aspects.software.cli = let
# llama endpoint lives on the entity's domain (host, or standalone home)
llama = e: { homeManager.programs.opencode.settings.provider."llama.cpp".options.baseURL = "https://llama.${e.domain}/v1"; };
in {
includes = [ ({ host, ... }: llama host) ({ home, ... }: llama home) ];
+1
View File
@@ -2,6 +2,7 @@
den.aspects.software.dev.homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
jdk25
love
python314Packages.pyside6
];
};
-1
View File
@@ -2,7 +2,6 @@
den.aspects.software.editors.homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
zed-editor
#arduino-ide
];
};
}
-1
View File
@@ -4,7 +4,6 @@
steamtinkerlaunch
scanmem
samrewritten
lug-helper
gamemode
steam-run
];
+65
View File
@@ -0,0 +1,65 @@
{ inputs, ... }: {
flake-file.inputs.rosemary = {
url = "github:microlift/rosemary";
inputs.nixpkgs.follows = "nixpkgs";
};
den.aspects.software.gaming.homeManager = { pkgs, ... }:
let
rosemary = inputs.rosemary.packages.${pkgs.stdenv.hostPlatform.system}.rosemary;
mkRoblox = { name, kind, channel, zip, app }: pkgs.writeShellApplication {
inherit name;
runtimeInputs = [ pkgs.curl pkgs.jq pkgs.unzip pkgs.coreutils pkgs.findutils rosemary ];
text = ''
base="''${XDG_DATA_HOME:-$HOME/.local/share}/roblox-macos/${kind}"
mkdir -p "$base"
if version=$(curl -fsSL https://clientsettingscdn.roblox.com/v2/client-version/${channel} | jq -er .clientVersionUpload); then
dir="$base/$version"
if [ ! -d "$dir/${app}" ]; then
tmp=$(mktemp -d "$base/.dl.XXXXXX")
trap 'rm -rf "$tmp"' EXIT
curl -fL -o "$tmp/r.zip" "https://setup.rbxcdn.com/mac/$version-${zip}"
unzip -q "$tmp/r.zip" -d "$tmp/out"
rm -rf "$dir"
mv "$tmp/out" "$dir"
fi
else
echo "${name}: version lookup failed, using newest cached build" >&2
dir=$(find "$base" -mindepth 1 -maxdepth 1 -name 'version-*' -printf '%T@ %p\n' | sort -rn | head -n1 | cut -d' ' -f2-)
[ -n "$dir" ] || { echo "${name}: nothing cached" >&2; exit 1; }
fi
exec rosemary run "$dir/${app}" "$@"
'';
};
in
{
imports = [ inputs.rosemary.homeManagerModules.default ];
# programs.rosemary.steam.enable = true; # adds "Rosemary" to Steam compatibilitytools.d; pick it per-game in Steam > Properties > Compatibility
home.packages = [
rosemary
(mkRoblox { name = "roblox"; kind = "player"; channel = "MacPlayer"; zip = "RobloxPlayer.zip"; app = "RobloxPlayer.app"; })
(mkRoblox { name = "roblox-studio"; kind = "studio"; channel = "MacStudio"; zip = "RobloxStudioApp.zip"; app = "RobloxStudio.app"; })
];
xdg.desktopEntries = {
roblox-macos = {
name = "Roblox (macOS)";
exec = "roblox %u";
categories = [ "Game" ];
mimeType = [ "x-scheme-handler/roblox-player" "x-scheme-handler/roblox" ];
};
roblox-studio-macos = {
name = "Roblox Studio (macOS)";
exec = "roblox-studio %u";
categories = [ "Development" ];
mimeType = [ "x-scheme-handler/roblox-studio" "x-scheme-handler/roblox-studio-auth" ];
};
};
};
}
+41
View File
@@ -0,0 +1,41 @@
{ inputs, ... }: {
flake-file.inputs.steam-config-nix = {
url = "github:different-name/steam-config-nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";
};
};
# Declarative Steam config (https://different-name.github.io/steam-config-nix).
# The NixOS module needs no user option: it runs steam-config-patcher@<user>
# for every normal user. One file per game lives next to this one
# (see half-life-2.nix); app keys are Steam App IDs from the store URL.
#
# WARNING: anything using the wrapper (args/env/wrappers/preHook/dllOverrides/
# rawLaunchOptions) OVERWRITES the launch options you set by hand in Steam.
# Move hand-written strings into rawLaunchOptions instead.
#
# programs.steam.config = {
# onSteamRunning = "wait"; # default; or "close" (waits for games),
# # "force-close" (even mid-game), "skip" (next activation)
# defaultCompatTool = "proton_experimental"; # or a package: pkgs.proton-ge-bin
# apps."1234560" = {
# name = "Some Game";
# compatTool = pkgs.proton-ge-bin; # per-game Proton
# args = [ "-vulkan" ]; # appended after the game command
# env = { MANGOHUD = "1"; DXVK_ASYNC = "1"; TZ = null; }; # null = unset
# wrappers = [ "gamemoderun" "mangohud" ]; # outermost first
# dllOverrides = { winhttp = "n,b"; }; # -> WINEDLLOVERRIDES
# preHook = ''echo "launching $*"''; # runs right before exec
# # or the classic Steam string instead of the structured options:
# # rawLaunchOptions = "gamemoderun %command%";
# };
# };
den.aspects.software.gaming.nixos = {
imports = [ inputs.steam-config-nix.nixosModules.default ];
programs.steam.config.enable = true;
};
}
@@ -23,7 +23,7 @@
proton-ge-bin
];
#platformOptimizations.enable = true;
# platformOptimizations.enable = true;
};
gamescope = {
@@ -0,0 +1,7 @@
{
den.aspects.software.gaming.nixos.programs.steam.config.apps."70" = {
name = "Half-Life";
args = [ "-novid" ];
wrappers = [ "gamemoderun" ];
};
}
+2 -3
View File
@@ -4,10 +4,9 @@
homeManager = { pkgs, ... }: {
home.packages = with pkgs; [
euphonica
rhythmbox
kew
audacious
nicotine-plus
songrec
];
};