add steam wrapper again
This commit is contained in:
parent
437e5aaabc
commit
8887fb7171
1 changed files with 8 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ lib, config, pkgs, ... }: let
|
{ lib, config, pkgs, ... }: let
|
||||||
inherit (lib) mkIf mkMerge;
|
inherit (lib) mkIf mkMerge;
|
||||||
inherit (config) conf;
|
inherit (config) conf;
|
||||||
|
mkXwlWrapper = import ../niri/xwl-wrapper.nix;
|
||||||
holo-script = pkgs.writeShellApplication {
|
holo-script = pkgs.writeShellApplication {
|
||||||
name = "holo-script";
|
name = "holo-script";
|
||||||
runtimeInputs = [ pkgs.steam pkgs.gamescope ];
|
runtimeInputs = [ pkgs.steam pkgs.gamescope ];
|
||||||
|
@ -13,6 +14,12 @@
|
||||||
desktopName = "Holo";
|
desktopName = "Holo";
|
||||||
exec = "${holo-script}/bin/holo-script";
|
exec = "${holo-script}/bin/holo-script";
|
||||||
};
|
};
|
||||||
|
steam-wrapped = mkXwlWrapper {
|
||||||
|
lib = lib;
|
||||||
|
pkgs = pkgs;
|
||||||
|
app = "${pkgs.steam}/bin/steam";
|
||||||
|
name = "Steam Wrapped";
|
||||||
|
};
|
||||||
in mkIf conf.games.enable (mkMerge [
|
in mkIf conf.games.enable (mkMerge [
|
||||||
(mkIf conf.impermanence.enable {
|
(mkIf conf.impermanence.enable {
|
||||||
environment.persistence."/persist".users.${conf.username}= {
|
environment.persistence."/persist".users.${conf.username}= {
|
||||||
|
@ -33,6 +40,7 @@ in mkIf conf.games.enable (mkMerge [
|
||||||
pkgs.heroic
|
pkgs.heroic
|
||||||
pkgs.itch
|
pkgs.itch
|
||||||
holo
|
holo
|
||||||
|
steam-wrapped
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue