From 59f786f40840788abfaff9b85863283154ee2c0b Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sun, 6 Aug 2023 22:17:51 +0300 Subject: [PATCH] add weechat --- hosts/sakotop/configuration.nix | 1 + modules/desktop/chat/weechat/default.nix | 21 +++++++++++++++++++++ overlays/default.nix | 9 ++++----- 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 modules/desktop/chat/weechat/default.nix diff --git a/hosts/sakotop/configuration.nix b/hosts/sakotop/configuration.nix index 0e5bbaf5..b000b438 100644 --- a/hosts/sakotop/configuration.nix +++ b/hosts/sakotop/configuration.nix @@ -41,6 +41,7 @@ }; chat = { discord.enable = true; + weechat.enable = true; }; game = { wine.enable = true; diff --git a/modules/desktop/chat/weechat/default.nix b/modules/desktop/chat/weechat/default.nix new file mode 100644 index 00000000..1bffead2 --- /dev/null +++ b/modules/desktop/chat/weechat/default.nix @@ -0,0 +1,21 @@ +{ + outputs, + options, + config, + lib, + pkgs, + ... +}: +with lib; let + cfg = config.modules.desktop.chat.weechat; +in { + options.modules.desktop.chat.weechat = { + enable = mkEnableOption false; + }; + + config = mkIf cfg.enable { + users.users.sako.packages = with pkgs; [ + weechat + ]; + }; +} diff --git a/overlays/default.nix b/overlays/default.nix index bfff05a4..82a51cb3 100644 --- a/overlays/default.nix +++ b/overlays/default.nix @@ -1,7 +1,6 @@ -{ inputs, ...}: -{ +{inputs, ...}: { # This one brings our custom packages from the 'pkgs' directory - additions = final: _prev: import ../packages { pkgs = final; }; + additions = final: _prev: import ../packages {pkgs = final;}; # This one contains whatever you want to overlay # You can change versions, add patches, set compilation flags, anything really. @@ -17,10 +16,10 @@ enableWideVine = true; }; vimix-gtk-themes = prev.vimix-gtk-themes.override { - themeVariants = [ "ruby" ]; + themeVariants = ["ruby"]; }; dwm = prev.dwm.overrideAttrs (old: { - src = ../config/dwm; + src = ../config/dwm; }); };