move steam config to module
This commit is contained in:
parent
35483f5c4c
commit
32ff7f09c7
2 changed files with 11 additions and 2 deletions
|
|
@ -25,6 +25,7 @@
|
|||
programs = {
|
||||
dae.enable = true;
|
||||
openssh.enable = true;
|
||||
steam.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,14 @@
|
|||
{ ... }:
|
||||
{ lib, config, ... }:
|
||||
let
|
||||
cfg = config.youthlic.programs.steam;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
options = {
|
||||
youthlic.programs.steam = {
|
||||
enable = lib.mkEnableOption "steam";
|
||||
};
|
||||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware.graphics.enable32Bit = true;
|
||||
programs.steam = {
|
||||
enable = true;
|
||||
Loading…
Add table
Add a link
Reference in a new issue