From 16e9da9931cf3b345a5043caf05830ac50e1d1cb Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 9 Jul 2023 01:25:39 +0300 Subject: [PATCH] steam and some other stuff --- hosts/sakotop/configuration.nix | 14 ++++++++------ modules/desktop/chat/default.nix | 5 +++++ modules/desktop/chat/discord/default.nix | 16 ++++++++++++++++ modules/desktop/default.nix | 2 ++ modules/desktop/game/default.nix | 7 +++++++ modules/desktop/game/lutris/default.nix | 16 ++++++++++++++++ modules/desktop/game/steam/default.nix | 16 ++++++++++++++++ modules/desktop/game/wine/default.nix | 17 +++++++++++++++++ 8 files changed, 87 insertions(+), 6 deletions(-) create mode 100644 modules/desktop/chat/default.nix create mode 100644 modules/desktop/chat/discord/default.nix create mode 100644 modules/desktop/game/default.nix create mode 100644 modules/desktop/game/lutris/default.nix create mode 100644 modules/desktop/game/steam/default.nix create mode 100644 modules/desktop/game/wine/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 58439da1..c59e3d86 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -21,6 +21,14 @@ apps = { keepassxc.enable = true; }; + chat = { + discord.enable = true; + }; + game = { + wine.enable = true; + lutris.enable = true; + steam.enable = true; + }; }; hardware = { nvidia.enable = true; @@ -51,12 +59,6 @@ isNormalUser = true; extraGroups = [ "wheel" "networkmanager" ]; # Enable ‘sudo’ for the user. packages = with pkgs; [ - tree - steam - winetricks - wineWowPackages.staging - lutris - discord networkmanagerapplet gcc python3 diff --git a/modules/desktop/chat/default.nix b/modules/desktop/chat/default.nix new file mode 100644 index 00000000..862de57a --- /dev/null +++ b/modules/desktop/chat/default.nix @@ -0,0 +1,5 @@ +{ + imports = [ + ./discord + ]; +} diff --git a/modules/desktop/chat/discord/default.nix b/modules/desktop/chat/discord/default.nix new file mode 100644 index 00000000..96521558 --- /dev/null +++ b/modules/desktop/chat/discord/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.chat.discord; +in +{ + options.modules.desktop.chat.discord = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + discord + ]; + }; +} diff --git a/modules/desktop/default.nix b/modules/desktop/default.nix index 9959bf56..df47ceab 100644 --- a/modules/desktop/default.nix +++ b/modules/desktop/default.nix @@ -4,5 +4,7 @@ ./bspwm ./browsers ./apps + ./game + ./chat ]; } diff --git a/modules/desktop/game/default.nix b/modules/desktop/game/default.nix new file mode 100644 index 00000000..1001f998 --- /dev/null +++ b/modules/desktop/game/default.nix @@ -0,0 +1,7 @@ +{ + imports = [ + ./steam + ./lutris + ./wine + ]; +} diff --git a/modules/desktop/game/lutris/default.nix b/modules/desktop/game/lutris/default.nix new file mode 100644 index 00000000..d5404d34 --- /dev/null +++ b/modules/desktop/game/lutris/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.game.lutris; +in +{ + options.modules.desktop.game.lutris = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + lutris + ]; + }; +} diff --git a/modules/desktop/game/steam/default.nix b/modules/desktop/game/steam/default.nix new file mode 100644 index 00000000..53338c28 --- /dev/null +++ b/modules/desktop/game/steam/default.nix @@ -0,0 +1,16 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.game.steam; +in +{ + options.modules.desktop.game.steam = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + steam + ]; + }; +} diff --git a/modules/desktop/game/wine/default.nix b/modules/desktop/game/wine/default.nix new file mode 100644 index 00000000..84ea1ecb --- /dev/null +++ b/modules/desktop/game/wine/default.nix @@ -0,0 +1,17 @@ +{ outputs, options, config, lib, pkgs, ...}: +with lib; +let + cfg = config.modules.desktop.game.wine; +in +{ + options.modules.desktop.game.wine = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + winetricks + wineWowPackages.staging + ]; + }; +}