From 49afa138aa61252de9162478493e672a0afc9431 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 2 Oct 2026 18:26:19 +0200 Subject: tweak(workstation): use niri instead of sway --- nixos/profiles/workstation/default.nix | 1 + nixos/profiles/workstation/graphical.nix | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) (limited to 'nixos') diff --git a/nixos/profiles/workstation/default.nix b/nixos/profiles/workstation/default.nix index 67e5a8d..8529ec9 100644 --- a/nixos/profiles/workstation/default.nix +++ b/nixos/profiles/workstation/default.nix @@ -38,6 +38,7 @@ in "networkmanager" "dialout" "wireshark" + "video" # allow brightnessctl to write backlight brightness via udev rule ]; }; diff --git a/nixos/profiles/workstation/graphical.nix b/nixos/profiles/workstation/graphical.nix index 8336159..756bcf2 100644 --- a/nixos/profiles/workstation/graphical.nix +++ b/nixos/profiles/workstation/graphical.nix @@ -13,6 +13,7 @@ hardware.bluetooth.enable = true; services.upower.enable = true; + services.udev.packages = [pkgs.brightnessctl]; systemd.user.services.serve = { after = ["network.target"]; @@ -28,21 +29,29 @@ # Packages + programs.niri.enable = true; + # The niri module enables the gnome keyring by default. + services.gnome.gnome-keyring.enable = false; + xdg.portal.config.niri."org.freedesktop.impl.portal.Secret" = pkgs.lib.mkForce "none"; + + # I'm still keeping sway around because niri doesn't support device-specific input config. + # (https://github.com/niri-wm/niri/issues/371) programs.sway = { enable = true; extraPackages = []; # Execute sway with required environment variables for GTK apps. wrapperFeatures.gtk = true; }; + programs.ssh.startAgent = true; - # without dbus-run-session opening links in Zed fails with "No Apps available" environment.loginShellInit = '' - [[ "$(tty)" == /dev/tty1 ]] && exec dbus-run-session sway + [[ "$(tty)" == /dev/tty1 ]] && exec niri-session -l ''; environment.systemPackages = with pkgs; [ wmenu + i3bar-river swayidle swaylock -- cgit v1.3.1