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:
parent
26a90c6b11
commit
ce3f177224
@ -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
15
modules/steam-run.nix
Normal 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
24
modules/texlive.nix
Normal 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
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user