summaryrefslogtreecommitdiff
path: root/hosts/local/s15/gui.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/local/s15/gui.nix')
-rw-r--r--hosts/local/s15/gui.nix54
1 files changed, 54 insertions, 0 deletions
diff --git a/hosts/local/s15/gui.nix b/hosts/local/s15/gui.nix
new file mode 100644
index 0000000..ec7cab2
--- /dev/null
+++ b/hosts/local/s15/gui.nix
@@ -0,0 +1,54 @@
+{
+ inputs,
+ pkgs,
+ ...
+}: {
+ environment.systemPackages = with pkgs; [
+ alacritty
+ mpv
+ vlc
+ imv
+ celluloid
+ ffmpeg-full
+ xfce.thunar
+ thunderbird
+ krita
+ wev
+ ];
+
+ programs.sway = {
+ enable = true;
+ wrapperFeatures.gtk = true;
+ extraPackages = with pkgs; [
+ wofi
+ foot
+ mako
+ kanshi
+ grim
+ slurp
+ wl-clipboard
+ wf-recorder
+ ];
+ };
+ environment.sessionVariables = {
+ NIXOS_OZONE_WL = "1";
+ DE = "generic";
+ LIBGL_ALWAYS_INDIRECT = 0;
+ GALLIUM_DRIVER = "llvmpipe";
+
+ SDL_VIDEODRIVER = "wayland";
+ QT_QPA_PLATFORM = "wayland";
+ QT_WAYLAND_DISABLE_WINDOWDECORATION = "1";
+ _JAVA_AWT_WM_NONREPARENTING = "1";
+ MOZ_ENABLE_WAYLAND = "1";
+
+ # GTK_IM_MODULE = "fcitx";
+ # QT_IM_MODULE = "fcitx";
+ # SDL_IM_MODULE = "fcitx";
+
+ XDG_CURRENT_DESKTOP = "sway";
+ GDK_BACKEND = "wayland";
+ XDG_SESSION_TYPE = "wayland";
+ XMODIFIERS = "@im=fcitx";
+ };
+}