refactor para nuevo sistema de shenvs

This commit is contained in:
Fabián Montero 2022-08-25 22:50:38 -06:00
parent 8f48524a76
commit d102de290e
14 changed files with 225 additions and 195 deletions

View file

@ -0,0 +1,13 @@
{pkgs, lib, config, ...}:
with lib; let
cfg = config.programs.steam;
in {
options = {
programs.steam.enable = mkEnableOption "Weather to enable option or not.";
};
config = mkIf cfg.enable {
home.packages = [
(pkgs.callPackage ./package.nix {})
];
};
}

View file

@ -0,0 +1,4 @@
{ writeShellScriptBin, steam-run, steam, ... }:
writeShellScriptBin "steam" ''
exec ${steam-run}/bin/steam-run ${steam}/bin/steam
''