From cc0325b431437e8afb497c7fbd380a0772ea8b50 Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Fri, 30 Sep 2022 11:42:13 +0000 Subject: [PATCH] start to add sway config --- modules/nixos/graphical/sway.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/nixos/graphical/sway.nix diff --git a/modules/nixos/graphical/sway.nix b/modules/nixos/graphical/sway.nix new file mode 100644 index 0000000..46463c2 --- /dev/null +++ b/modules/nixos/graphical/sway.nix @@ -0,0 +1,20 @@ +{ config, pkgs, lib, ... }: { + + config = lib.mkIf config.gui.enable { + + programs.sway.enable = true; + + }; + + home-manager.users.${config.user} = { + + wayland.windowManager.sway.enable = true; + wayland.windowManager.sway.config = + config.home-manager.users.${config.user}.xsession.windowManager.i3.config; + + }; + + # TODO: swaybg + # TODO: swaylock + +}