mv steam to modules
This commit is contained in:
@@ -4,7 +4,9 @@ let
|
||||
in
|
||||
{
|
||||
options.smayzy.base = mkOption {
|
||||
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "";
|
||||
};
|
||||
|
||||
config = mkIf config.smayzy.base {
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
./base-cli
|
||||
./hardware
|
||||
./virt
|
||||
./games
|
||||
];
|
||||
|
||||
# Timzone and locales (same for all machines so I put it here)
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
{ lib, config, pkgs, ... }:
|
||||
{
|
||||
imports = [
|
||||
./steam.nix
|
||||
];
|
||||
}
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user