mv steam to modules
This commit is contained in:
parent
40a7288a5a
commit
ef7111275b
@ -7,7 +7,10 @@
|
|||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
smayzy.nvidia.enable = true;
|
smayzy = {
|
||||||
|
nvidia.enable = true;
|
||||||
|
steam.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
home-manager = {
|
home-manager = {
|
||||||
extraSpecialArgs = { inherit inputs; };
|
extraSpecialArgs = { inherit inputs; };
|
||||||
@ -53,8 +56,6 @@
|
|||||||
xdg.portal.enable = true;
|
xdg.portal.enable = true;
|
||||||
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
xdg.portal.extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
|
||||||
|
|
||||||
programs.steam.enable = true;
|
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
mako
|
mako
|
||||||
wofi
|
wofi
|
||||||
|
|||||||
@ -4,7 +4,9 @@ let
|
|||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.smayzy.base = mkOption {
|
options.smayzy.base = mkOption {
|
||||||
|
type = types.bool;
|
||||||
|
default = false;
|
||||||
|
description = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf config.smayzy.base {
|
config = mkIf config.smayzy.base {
|
||||||
|
|||||||
@ -5,6 +5,7 @@
|
|||||||
./base-cli
|
./base-cli
|
||||||
./hardware
|
./hardware
|
||||||
./virt
|
./virt
|
||||||
|
./games
|
||||||
];
|
];
|
||||||
|
|
||||||
# Timzone and locales (same for all machines so I put it here)
|
# Timzone and locales (same for all machines so I put it here)
|
||||||
|
|||||||
6
modules/nix/games/default.nix
Normal file
6
modules/nix/games/default.nix
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{ lib, config, pkgs, ... }:
|
||||||
|
{
|
||||||
|
imports = [
|
||||||
|
./steam.nix
|
||||||
|
];
|
||||||
|
}
|
||||||
15
modules/nix/games/steam.nix
Normal file
15
modules/nix/games/steam.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user