fix(bbsteamie): put symlink of gaming mode switch on desktop
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
be905e8d76
commit
f0b721c12d
1 changed files with 18 additions and 8 deletions
|
@ -4,7 +4,7 @@ defaultSession: {
|
||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
inherit (lib) getExe mkForce;
|
inherit (lib) findFirst getExe mkForce;
|
||||||
|
|
||||||
inherit (config.vars) mainUser;
|
inherit (config.vars) mainUser;
|
||||||
|
|
||||||
|
@ -83,12 +83,22 @@ in {
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
# Add desktop entry to make it GUI friendly
|
home-manager.users.${mainUser} = {
|
||||||
home-manager.users.${mainUser}.xdg.desktopEntries."Gaming Mode" = {
|
# Add desktop entry to make it GUI friendly
|
||||||
name = "Gaming Mode";
|
xdg.desktopEntries."Gaming Mode" = {
|
||||||
exec = getExe gaming-mode;
|
name = "Gaming Mode";
|
||||||
icon = "steam";
|
exec = getExe gaming-mode;
|
||||||
terminal = false;
|
icon = "steam";
|
||||||
type = "Application";
|
terminal = false;
|
||||||
|
type = "Application";
|
||||||
|
};
|
||||||
|
|
||||||
|
home.file."Desktop/Gaming Mode.desktop".source =
|
||||||
|
(
|
||||||
|
findFirst
|
||||||
|
(x: x.meta.name == "Gaming Mode.desktop") {}
|
||||||
|
config.home-manager.users.mariah.home.packages
|
||||||
|
)
|
||||||
|
+ "/share/applications/Gaming Mode.desktop";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue