base
This commit is contained in:
parent
72508268d6
commit
da80e76c8d
3 changed files with 6 additions and 2 deletions
|
|
@ -15,6 +15,7 @@ in {
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./common.nix
|
./common.nix
|
||||||
|
./options.nix
|
||||||
|
|
||||||
conf.extraConfig
|
conf.extraConfig
|
||||||
conf.hardware-configuration
|
conf.hardware-configuration
|
||||||
|
|
@ -29,6 +30,7 @@ in {
|
||||||
|
|
||||||
modules = [
|
modules = [
|
||||||
./common.nix
|
./common.nix
|
||||||
|
./options.nix
|
||||||
|
|
||||||
conf.extraConfig
|
conf.extraConfig
|
||||||
conf.hardware-configuration
|
conf.hardware-configuration
|
||||||
|
|
|
||||||
4
system/options.nix
Normal file
4
system/options.nix
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
{lib, ...}: {
|
||||||
|
options.gaming.enable = lib.mkEnableOption "Enable gaming";
|
||||||
|
config.gaming.enable = lib.mkDefault false;
|
||||||
|
}
|
||||||
|
|
@ -3,8 +3,6 @@
|
||||||
config,
|
config,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
options.gaming.enable = lib.mkEnableOption "Enable gaming";
|
|
||||||
|
|
||||||
config = lib.mkIf config.gaming.enable {
|
config = lib.mkIf config.gaming.enable {
|
||||||
programs.steam = {
|
programs.steam = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue