aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaroline Larimore <caroline@larimo.re>2024-05-12 12:57:34 -0700
committerCaroline Larimore <caroline@larimo.re>2024-05-12 12:57:34 -0700
commit822b4242183fd466c3326b2dfb26ae5a9222407c (patch)
tree1e20cd97fe0a6f86221c8d7fdd756163709d7ef2
parent2308ab6125f5b7302f1a3968d58ad657e68aad8a (diff)
Relocate some packages and scripts to better locations
-rw-r--r--home.nix14
-rw-r--r--modules/home/discord.nix8
-rw-r--r--modules/home/eww.nix16
3 files changed, 22 insertions, 16 deletions
diff --git a/home.nix b/home.nix
index f1f0721..6f92d91 100644
--- a/home.nix
+++ b/home.nix
@@ -88,25 +88,11 @@
i3-msg restart
'')
- eww
- (writeShellScriptBin "eww-toggle"''
- #!/usr/bin/env bash
-
- if ${pkgs.eww}/bin/eww active-windows | grep $1; then
- ${pkgs.eww}/bin/eww close $1
- else
- ${pkgs.eww}/bin/eww open $@
- fi
- '')
-
pfetch
kdePackages.breeze
irssi
- (discord.override {
- withVencord = true;
- })
qbittorrent
jellyfin-media-player
diff --git a/modules/home/discord.nix b/modules/home/discord.nix
index f303f1f..91fbd8e 100644
--- a/modules/home/discord.nix
+++ b/modules/home/discord.nix
@@ -1,8 +1,14 @@
-{ config, lib, ... }:
+{ config, lib, pkgs, ... }:
let
conversion = import ../../util/color-conversion.nix { inherit lib; };
in {
+ home.packages = with pkgs; [
+ (discord.override {
+ withVencord = true;
+ })
+ ];
+
xdg.configFile."Vencord/themes/nix.theme.css".text = let c = config.theme.colors; in ''
@import url(https://mwittrien.github.io/BetterDiscordAddons/Themes/BasicBackground/BasicBackground.css);
diff --git a/modules/home/eww.nix b/modules/home/eww.nix
index 70bdff2..0e6d00f 100644
--- a/modules/home/eww.nix
+++ b/modules/home/eww.nix
@@ -1,6 +1,20 @@
-{ config, lib, ... }:
+{ config, lib, pkgs, ... }:
{
+ home.packages = with pkgs; [
+ eww
+
+ (writeShellScriptBin "eww-toggle"''
+ #!/usr/bin/env bash
+
+ if ${pkgs.eww}/bin/eww active-windows | grep $1; then
+ ${pkgs.eww}/bin/eww close $1
+ else
+ ${pkgs.eww}/bin/eww open $@
+ fi
+ '')
+ ];
+
xdg.configFile."eww/colors.css".text = let c = config.theme.colors; in ''
@define-color accent #${c.accent};