mv steam to modules

This commit is contained in:
smayzy 2025-07-08 17:00:51 +02:00
parent 40a7288a5a
commit ef7111275b
5 changed files with 29 additions and 4 deletions

View File

@ -7,7 +7,10 @@
./hardware-configuration.nix
];
smayzy.nvidia.enable = true;
smayzy = {
nvidia.enable = true;
steam.enable = true;
};
home-manager = {
extraSpecialArgs = { inherit inputs; };
@ -53,8 +56,6 @@
xdg.portal.enable = true;
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
programs.steam.enable = true;
environment.systemPackages = with pkgs; [
mako
wofi

View File

@ -4,7 +4,9 @@ let
in
{
options.smayzy.base = mkOption {
type = types.bool;
default = false;
description = "";
};
config = mkIf config.smayzy.base {

View File

@ -5,6 +5,7 @@
./base-cli
./hardware
./virt
./games
];
# Timzone and locales (same for all machines so I put it here)

View File

@ -0,0 +1,6 @@
{ lib, config, pkgs, ... }:
{
imports = [
./steam.nix
];
}

View File

@ -0,0 +1,15 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.steam = mkOption {
type = types.bool;
default = false;
description = "steam support";
};
config = mkIf config.smayzy.steam {
programs.steam.enable = true;
};
}