diff options
| author | Martin Fischer <martin@push-f.com> | 2026-10-02 18:26:19 +0200 |
|---|---|---|
| committer | Martin Fischer <martin@push-f.com> | 2026-10-07 19:33:00 +0200 |
| commit | 49afa138aa61252de9162478493e672a0afc9431 (patch) | |
| tree | 214f7c218ada4d10cbc9db7b779f3752f7bf199d /nixos | |
| parent | 646ed1c5739e6500afd54a44e36b3a8edbb0e320 (diff) | |
tweak(workstation): use niri instead of sway
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/profiles/workstation/default.nix | 1 | ||||
| -rw-r--r-- | nixos/profiles/workstation/graphical.nix | 13 |
2 files changed, 12 insertions, 2 deletions
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 |
