From fc7e31558fde7dcba589dd90b084d836d2703dba Mon Sep 17 00:00:00 2001 From: punkfairie Date: Sat, 16 Nov 2024 19:36:30 -0800 Subject: [PATCH] feat(home): rbw --- homes/x86_64-linux/marley@nyx/default.nix | 1 + modules/home/programs/rbw/default.nix | 23 +++++++++++++++++++++++ old/home/programs/rbw.nix | 8 -------- 3 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 modules/home/programs/rbw/default.nix delete mode 100644 old/home/programs/rbw.nix diff --git a/homes/x86_64-linux/marley@nyx/default.nix b/homes/x86_64-linux/marley@nyx/default.nix index 69ffe92..f90d5d2 100644 --- a/homes/x86_64-linux/marley@nyx/default.nix +++ b/homes/x86_64-linux/marley@nyx/default.nix @@ -36,6 +36,7 @@ in man = enabled; ncmpcpp = enabled; neo = enabled; + rbw = enabled; systemctl = enabled; }; xorg = { diff --git a/modules/home/programs/rbw/default.nix b/modules/home/programs/rbw/default.nix new file mode 100644 index 0000000..916db2e --- /dev/null +++ b/modules/home/programs/rbw/default.nix @@ -0,0 +1,23 @@ +{ + lib, + config, + namespace, + ... +}: +let + inherit (lib) mkIf; + inherit (lib.${namespace}) mkEnableModule; + + cfg = config.${namespace}.programs.rbw; +in +{ + options = mkEnableModule "programs.rbw"; + + config = mkIf cfg.enable { + programs.rbw = { + enable = true; + + settings.email = "bitwarden@punkfairie.net"; + }; + }; +} diff --git a/old/home/programs/rbw.nix b/old/home/programs/rbw.nix deleted file mode 100644 index 9541bdf..0000000 --- a/old/home/programs/rbw.nix +++ /dev/null @@ -1,8 +0,0 @@ -{ _ }: -{ - programs.rbw = { - enable = true; - - settings.email = "bitwarden@punkfairie.net"; - }; -}