Skip to content

Instantly share code, notes, and snippets.

View mschwaig's full-sized avatar

Martin Schwaighofer mschwaig

  • Linz, Austria
  • 13:27 (UTC +02:00)
  • X @mschwaig
View GitHub Profile
@mschwaig
mschwaig / sway.nix
Last active April 28, 2024 01:51
Configure sway as the window manager for NixOS with gdm as the display manager
{ config, pkgs, lib, ... }:
{
# This sway config is mostly based on https://nixos.wiki/wiki/Sway
# which integrates sway with systemd in the style described here
# https://github.com/swaywm/sway/wiki/Systemd-integration
# and the replies in https://github.com/NixOS/nixpkgs/issues/57602
# with some individual packages added/removed and using sddm as the display manager.
#
# Take care to start the correct target as described by the sway proejct wiki.