Sway: Difference between revisions
m Added link to SwayFX Page |
mNo edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 10: | Line 10: | ||
{ | { | ||
environment.systemPackages = with pkgs; [ | environment.systemPackages = with pkgs; [ | ||
wl-clipboard # | wl-clipboard # Copy/Paste functionality. | ||
mako # | mako # Notification utility. | ||
]; | ]; | ||
# | # Enables Gnome Keyring to store secrets for applications. | ||
services.gnome.gnome-keyring.enable = true; | services.gnome.gnome-keyring.enable = true; | ||
# | # Enable Sway. | ||
programs.sway = { | programs.sway = { | ||
enable = true; | enable = true; | ||
| Line 60: | Line 59: | ||
You may need to activate dbus manually from .zshrc to use i.e: dunst, see [https://discourse.nixos.org/t/dunst-crashes-if-run-as-service/27671/2 Dunst crashes if run as service] | You may need to activate dbus manually from .zshrc to use i.e: dunst, see [https://discourse.nixos.org/t/dunst-crashes-if-run-as-service/27671/2 Dunst crashes if run as service] | ||
=== Systemd services === | === Systemd services === | ||
| Line 127: | Line 119: | ||
wayland.windowManager.sway.systemd.variables = ["--all"]; | wayland.windowManager.sway.systemd.variables = ["--all"]; | ||
</nowiki>}} | </nowiki>}} | ||
=== Secret Service === | |||
It is recommended to enable a secret service provider such as [https://wiki.gnome.org/Projects/GnomeKeyring Gnome Keyring]. For more information on secret services check the [[Secret Service]] page. | |||
Install and enable: | |||
{{File|3=services.gnome.gnome-keyring.enable = true;|name=/etc/nixos/configuration.nix|lang=nix}} | |||
In order to unlock the keyring through logins from greeters and screen locking utilities you will need to enable them through PAM. | |||
{{File|3=security.pam.services = { | |||
greetd.enableGnomeKeyring = true; | |||
swaylock.enableGnomeKeyring = true; | |||
# If using a display manager such as GDM | |||
#gdm.enableGnomeKeyring = true; | |||
};|name=/etc/nixos/configuration.nix|lang=nix}} | |||
== Configuration == | == Configuration == | ||