From a5bbca6c24d5fd4f6405dcbed125e4dd5b09c1ac Mon Sep 17 00:00:00 2001 From: punkfairie Date: Mon, 18 Nov 2024 20:37:50 -0800 Subject: [PATCH] feat(home): Bundle i3 dependancies --- homes/x86_64-linux/marley@nyx/default.nix | 7 +------ modules/home/xorg/i3/default.nix | 22 ++++++++++++++++++++++ 2 files changed, 23 insertions(+), 6 deletions(-) create mode 100644 modules/home/xorg/i3/default.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index 2330399..8d88b7c 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -54,8 +54,6 @@ in neo = enabled; rbw = enabled; ripgrep = enabled; - # TODO: is this xorg only? bundle under xorg if so - rofi = enabled; ssh = enabled; starship = enabled; systemctl = enabled; @@ -67,14 +65,11 @@ in }; services = { clipboard = enabled; - # TODO: bundle this under xorg - dunst = enabled; - # TODO: bundle this with xorg - polybar = enabled; syncthing = enabled; }; xorg = { xsession = enabled; + i3 = enabled; }; }; diff --git a/modules/home/xorg/i3/default.nix b/modules/home/xorg/i3/default.nix new file mode 100644 index 0000000..e1e89d1 --- /dev/null +++ b/modules/home/xorg/i3/default.nix @@ -0,0 +1,22 @@ +{ + lib, + config, + ... +}: +let + inherit (lib) mkEnableOption mkIf; + inherit (lib.marleyos) enabled; + + cfg = config.marleyos.xorg.i3; +in +{ + options.marleyos.xorg.i3.enable = mkEnableOption "i3"; + + config = mkIf cfg.enable { + marleyos = { + programs.rofi = enabled; + services.polybar = enabled; + services.dunst = enabled; + }; + }; +}