configure autostart entries, build extest i686 for steam
This commit is contained in:
4 files changed
+314
-2
No files matched your search
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user