summaryrefslogtreecommitdiff
path: root/hosts/local/s15
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/local/s15')
-rw-r--r--hosts/local/s15/configuration.nix34
-rw-r--r--hosts/local/s15/gui.nix54
2 files changed, 75 insertions, 13 deletions
diff --git a/hosts/local/s15/configuration.nix b/hosts/local/s15/configuration.nix
index a326dd4..20efcb5 100644
--- a/hosts/local/s15/configuration.nix
+++ b/hosts/local/s15/configuration.nix
@@ -7,17 +7,24 @@
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;
+ chromium.enableWideVine = true;
+ };
wsl.enable = true;
wsl.defaultUser = "y";
imports = [
@@ -26,11 +33,12 @@ in {
../../editors.nix
../../pkgs.nix
../../server.nix
- ../../gpg.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
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";
+ };
+}