home(steam): port to home
This commit is contained in:
parent
50749ed595
commit
2081040e55
4 changed files with 56 additions and 23 deletions
13
home/steam/home.nix
Normal file
13
home/steam/home.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
{ pkgs
|
||||
, lib
|
||||
, config
|
||||
, ... }: with lib; let
|
||||
cfg = config.passthrough.steam;
|
||||
enable = cfg.enable && (cfg.allUsers || (config.home.username == "app"));
|
||||
package = config.programs.steam.package;
|
||||
in mkIf enable {
|
||||
home.packages = with pkgs; [
|
||||
cfg.package
|
||||
cfg.package.run
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue