configure autostart entries, build extest i686 for steam

This commit is contained in:
greyweather committed 2026-08-31 03:46:25 +01:00
1 parent 5c2a328858
commit d8005f7871
4 files changed
+314 -2

No files matched your search

+17 -1
View File
@@ -8,7 +8,16 @@
extraSpecialArgs = { inherit inputs; };
};
flake.homeModules."grey@takamaki" = { pkgs, config, lib, ... }: {
flake.homeModules."grey@takamaki" = { pkgs, config, lib, ... }: let
pkgsCross = import inputs.nixpkgs {
localSystem = "x86_64-linux";
hostSystem = "x86_64-linux";
crossSystem = "i686-linux";
};
steam-overriden-desktop-file = pkgs.runCommand "modifySteamDesktopFile" {} ''
sed 's@Exec=/usr/bin/steam@Exec=env LD_PRELOAD=${pkgsCross.extest}/lib/libextest.so /usr/bin/steam@' ${self}/assets/steam.desktop.example > $out
'';
in {
imports = with self.homeModules; [
global
audio
@@ -28,6 +37,13 @@
'';
};
xdg.dataFile."applications/steam.desktop".source = steam-overriden-desktop-file;
xdg.configFile."autostart/steam.desktop" = {
source = steam-overriden-desktop-file;
force = true;
};
components = {
windowManagers = "niri";
shells = "noctalia";