From c04d34ab44a1bd2b0118736d4a9a796f1c700eb2 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Sun, 2 Jun 2024 14:38:57 +0200 Subject: sway: init module This inits both the nixos and the home-manager module --- modules/hm/sils/default.nix | 1 + modules/hm/sils/sway.nix | 16 ++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 modules/hm/sils/sway.nix (limited to 'modules/hm') diff --git a/modules/hm/sils/default.nix b/modules/hm/sils/default.nix index cef49ac..6a2b43c 100644 --- a/modules/hm/sils/default.nix +++ b/modules/hm/sils/default.nix @@ -10,6 +10,7 @@ ./jameica.nix ./kdeconnect.nix ./mail.nix + ./sway.nix ./zathura.nix ]; } diff --git a/modules/hm/sils/sway.nix b/modules/hm/sils/sway.nix new file mode 100644 index 0000000..4298dd0 --- /dev/null +++ b/modules/hm/sils/sway.nix @@ -0,0 +1,16 @@ +{ + config, + lib, + ... +}: let + cfg = config.sils.sway; +in { + options.sils.sway.enable = lib.mkEnableOption "sway"; + config = lib.mkIf cfg.enable { + wayland.windowManager.sway = { + enable = true; + config = { + }; + }; + }; +} -- cgit 1.4.1