From 20b769da0c2d91ef9ff1a804eb050615e6de7e15 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 22 Jun 2025 23:57:11 +0000 Subject: m --- hosts/local/s15/configuration.nix | 6 +++++ hosts/local/s15/gui.nix | 54 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 hosts/local/s15/gui.nix (limited to 'hosts/local/s15') 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"; + }; +} -- cgit v1.2.3 From 93a42a56aa50d00fd2e521acd8213a0dfc3612c9 Mon Sep 17 00:00:00 2001 From: polwex Date: Sun, 6 Jul 2025 15:48:43 +0000 Subject: m --- hosts/local/s15/configuration.nix | 30 ++++++++++++++++-------------- 1 file changed, 16 insertions(+), 14 deletions(-) (limited to 'hosts/local/s15') diff --git a/hosts/local/s15/configuration.nix b/hosts/local/s15/configuration.nix index ae594de..20efcb5 100644 --- a/hosts/local/s15/configuration.nix +++ b/hosts/local/s15/configuration.nix @@ -7,17 +7,19 @@ inputs, pkgs, ... -}: let - wrappers = - inputs.wrapper-manager.lib.build - { - inherit pkgs; - modules = [ - ../../../wrappers/aerc - ../../../wrappers/zellij - ]; - }; -in { +}: +# let +# wrappers = +# inputs.wrapper-manager.lib.build +# { +# inherit pkgs; +# modules = [ +# ../../../wrappers/aerc +# ../../../wrappers/zellij +# ]; +# }; +# in +{ nixpkgs.config = { allowUnfree = true; allowUnfreePredicate = _: true; @@ -31,12 +33,12 @@ in { ../../editors.nix ../../pkgs.nix ../../server.nix - ../../gpg.nix - ./gui.nix + # ../../gpg.nix ]; environment.systemPackages = [ - wrappers + # wrappers pkgs.superhtml + pkgs.broken-sword-25 ]; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions -- cgit v1.2.3