move steam config to module

This commit is contained in:
ulic-youthlic 2025-01-13 17:29:06 +08:00
parent 35483f5c4c
commit 32ff7f09c7
Signed by: youthlic
GPG key ID: 63E86C3C14A0D721
2 changed files with 11 additions and 2 deletions

View file

@ -25,6 +25,7 @@
programs = {
dae.enable = true;
openssh.enable = true;
steam.enable = true;
};
};

View file

@ -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;