diff options
Diffstat (limited to 'hosts/local/s15')
-rw-r--r-- | hosts/local/s15/configuration.nix | 6 | ||||
-rw-r--r-- | hosts/local/s15/gui.nix | 54 |
2 files changed, 60 insertions, 0 deletions
diff --git a/hosts/local/s15/configuration.nix b/hosts/local/s15/configuration.nix index a326dd4..ae594de 100644 --- a/hosts/local/s15/configuration.nix +++ b/hosts/local/s15/configuration.nix @@ -18,6 +18,11 @@ ]; }; in { + nixpkgs.config = { + allowUnfree = true; + allowUnfreePredicate = _: true; + chromium.enableWideVine = true; + }; wsl.enable = true; wsl.defaultUser = "y"; imports = [ @@ -27,6 +32,7 @@ in { ../../pkgs.nix ../../server.nix ../../gpg.nix + ./gui.nix ]; environment.systemPackages = [ wrappers 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"; + }; +} |