From f07479ed43c5a8fb2425b7634aaf1b415c5b35e3 Mon Sep 17 00:00:00 2001 From: Kopatz <7265381+Kropatz@users.noreply.github.com> Date: Sun, 7 Jan 2024 21:27:29 +0100 Subject: [PATCH] add ime --- flake.nix | 2 ++ modules/graphical/games.nix | 16 ++++++++++++++++ modules/graphical/ime.nix | 5 +++++ modules/graphical/shared.nix | 10 +--------- 4 files changed, 24 insertions(+), 9 deletions(-) create mode 100644 modules/graphical/games.nix create mode 100644 modules/graphical/ime.nix diff --git a/flake.nix b/flake.nix index cc45399..b65c598 100644 --- a/flake.nix +++ b/flake.nix @@ -113,6 +113,8 @@ ./modules/graphical/gamemode.nix ./modules/graphical/obs.nix ./modules/graphical/audio.nix + ./modules/graphical/games.nix + ./modules/graphical/ime.nix ./modules/graphical/shared.nix ./modules/hardware/nvidia.nix ./modules/hardware/ssd.nix diff --git a/modules/graphical/games.nix b/modules/graphical/games.nix new file mode 100644 index 0000000..4601749 --- /dev/null +++ b/modules/graphical/games.nix @@ -0,0 +1,16 @@ +{ pkgs, ...}: +{ + programs.steam = { + enable = true; + remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play + dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server + gamescopeSession.enable = true; + }; + environment.systemPackages = with pkgs; [ + taisei + osu-lazer-bin + yuzu-mainline + wineWowPackages.unstableFull + lutris + ]; +} diff --git a/modules/graphical/ime.nix b/modules/graphical/ime.nix new file mode 100644 index 0000000..5d673b4 --- /dev/null +++ b/modules/graphical/ime.nix @@ -0,0 +1,5 @@ +{ config, lib, pkgs, ... }: +{ + i18n.inputMethod.enabled = "fcitx5"; + i18n.inputMethod.fcitx5.addons = [ pkgs.fcitx5-mozc ]; +} diff --git a/modules/graphical/shared.nix b/modules/graphical/shared.nix index 4719710..00542a2 100644 --- a/modules/graphical/shared.nix +++ b/modules/graphical/shared.nix @@ -9,12 +9,7 @@ let }); in { - programs.steam = { - enable = true; - remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play - dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server - gamescopeSession.enable = true; - }; + programs.dconf.enable = true; programs.kdeconnect.enable = true; @@ -58,7 +53,6 @@ in nextcloud-client thunderbird rofi - taisei localsend element-desktop tetrioPlus @@ -73,10 +67,8 @@ in qbittorrent brightnessctl wacomtablet - osu-lazer-bin libsForQt5.kolourpaint wl-clipboard - yuzu-mainline ]; #environment.sessionVariables = {