configure autostart entries, build extest i686 for steam
This commit is contained in:
4 files changed
+314
-2
No files matched your search
@@ -15,6 +15,20 @@
|
||||
config = lib.mkIf (config.features.applications.gui.equibop.enable) {
|
||||
programs.equibop.enable = true;
|
||||
|
||||
xdg.configFile."autostart/equibop.desktop" = {
|
||||
enable = true;
|
||||
text = ''
|
||||
[Desktop Entry]
|
||||
Type=Application
|
||||
Name=Equibop
|
||||
Comment=Equibop autostart script
|
||||
Exec=${pkgs.equibop}/bin/equibop --enable-speech-dispatcher
|
||||
StartupNotify=false
|
||||
Terminal=false
|
||||
Icon=equibop
|
||||
'';
|
||||
};
|
||||
|
||||
home.activation = {
|
||||
linkEquibopConfigSettings = lib.hm.dag.entryAfter ["writeBoundary"] (inputs.helpers.mkSymlinkActivationScript {
|
||||
target = "${config.xdg.configHome}/equibop/settings.json";
|
||||
|
||||
@@ -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