1
0
mirror of https://github.com/ellmau/nixos.git synced 2025-12-19 09:29:36 +01:00

Add module for steam-run and texlive

This commit is contained in:
Stefan Ellmauthaler 2022-05-24 11:45:11 +02:00
parent 26a90c6b11
commit ce3f177224
Failed to extract signature
3 changed files with 41 additions and 0 deletions

View File

@ -22,4 +22,6 @@
- [X] locale/fonts - [X] locale/fonts
- [X] zsh - [X] zsh
- [x] gnupg agent - [x] gnupg agent
- [ ] integrate steam-run module
- [ ] integrate texlive module

15
modules/steam-run.nix Normal file
View File

@ -0,0 +1,15 @@
{ config, lib, pkgs, ... }:
with lib; {
options.elss.steam-run.enable = mkEnableOption "configure steam-run to support unpatched binaries";
config =
let
cfg = config.elss.steam-run;
in
mkIf cfg.enable {
environment.systemPackages = [
(pkgs.unstable.steam.override { withJava = true; }).run
];
};
}

24
modules/texlive.nix Normal file
View File

@ -0,0 +1,24 @@
{ config, lib, pkgs }:
with lib; {
options.elss.texlive = {
enable = mkEnableOption "configure texlife on the system";
package = mkOption {
type = types.package;
default = pkgs.texlive.combined.scheme-full;
description = ''
This option specifies which texlive package shall be installed
'';
};
};
config =
let
cfg = config.elss.texlive;
in
mkIf cfg.enable {
environment.systemPackages = [
cfg.package
];
};
}