commit 7372e0a2f0e9755d9958a20b14877ee1ba120b19
parent 1f72e1b963348538baeadafabf182f6c71d3b410
Author: Vincent Demeester <vincent@sbr.pm>
Date: Thu, 1 Nov 2018 15:52:16 +0100
profiles: add gamimg profile
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
4 files changed, 25 insertions(+), 9 deletions(-)
diff --git a/gaming.nix b/gaming.nix
@@ -1,8 +0,0 @@
-{ pkgs, prefix, ...}:
-
-{
- home.packages = with pkgs; [
- steam
- discord
- ];
-}
diff --git a/modules/module-list.nix b/modules/module-list.nix
@@ -13,6 +13,7 @@
./profiles/dev.rust.nix
./profiles/emacs.nix
./profiles/fish.nix
+ ./profiles/gaming.nix
./profiles/git.nix
./profiles/i3.nix
./profiles/laptop.nix
diff --git a/modules/profiles/gaming.nix b/modules/profiles/gaming.nix
@@ -0,0 +1,23 @@
+{ config, lib, pkgs, ... }:
+
+with lib;
+let
+ cfg = config.profiles.gaming;
+in
+{
+ options = {
+ profiles.gaming = {
+ enable = mkOption {
+ default = false;
+ description = "Enable gaming profile";
+ type = types.bool;
+ };
+ };
+ };
+ config = mkIf cfg.enable {
+ home.packages = with pkgs; [
+ steam
+ discord
+ ];
+ };
+}
diff --git a/shikoku.nix b/shikoku.nix
@@ -3,11 +3,11 @@
{
imports = [
./desktop.nix
- ./gaming.nix
./devops.nix
./openshift.nix
];
profiles.desktop.enable = true;
+ profiles.gaming.enable = true;
profiles.dev = {
go.enable = true;
haskell.enable = true;