about summary refs log tree commit diff
path: root/users/glittershark/system/system
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2020-09-09T14·48-0400
committerglittershark <grfn@gws.fyi>2020-09-09T16·09+0000
commit1c9843707914aecf3bfe4f51c47504b8d56791a4 (patch)
treefb8d992aa129b11eb9816618a98e969452d67fdc /users/glittershark/system/system
parent90451fdc0e7ff313f7f35ed55a890502f2b08867 (diff)
feat(gs/home): Add chupacabra home-manager to CI targets r/1780
Also move fcitx to system, since it's a nixos thing not a home-manager
thing.

Change-Id: I3e047494a478520e939d48fc72cc91a2d797bf74
Reviewed-on: https://cl.tvl.fyi/c/depot/+/1969
Tested-by: BuildkiteCI
Reviewed-by: glittershark <grfn@gws.fyi>
Diffstat (limited to 'users/glittershark/system/system')
-rw-r--r--users/glittershark/system/system/machines/chupacabra.nix1
-rw-r--r--users/glittershark/system/system/modules/fcitx.nix10
2 files changed, 11 insertions, 0 deletions
diff --git a/users/glittershark/system/system/machines/chupacabra.nix b/users/glittershark/system/system/machines/chupacabra.nix
index 5e9fb5795330..5d9414309676 100644
--- a/users/glittershark/system/system/machines/chupacabra.nix
+++ b/users/glittershark/system/system/machines/chupacabra.nix
@@ -6,6 +6,7 @@
     ../modules/reusable/battery.nix
     ../modules/tvl.nix
     ../modules/urbint.nix
+    ../modules/fcitx.nix
     ../../../../../ops/nixos/v4l2loopback.nix
   ];
 
diff --git a/users/glittershark/system/system/modules/fcitx.nix b/users/glittershark/system/system/modules/fcitx.nix
new file mode 100644
index 000000000000..812f598f9f47
--- /dev/null
+++ b/users/glittershark/system/system/modules/fcitx.nix
@@ -0,0 +1,10 @@
+{ config, lib, pkgs, ... }:
+
+{
+  i18n.inputMethod = {
+    enabled = "fcitx";
+    fcitx.engines = with pkgs.fcitx-engines; [
+      cloudpinyin
+    ];
+  };
+}