From c6b260280c7c0261df63a0e0cd0e6140700e2135 Mon Sep 17 00:00:00 2001 From: matt1432 Date: Tue, 3 Oct 2023 11:18:39 -0400 Subject: [PATCH] feat(theme): add xresources dracula theme --- nixos/home/hyprland.nix | 6 +++--- nixos/home/theme.nix | 12 ++++++++++-- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/nixos/home/hyprland.nix b/nixos/home/hyprland.nix index a2d4e810..faccef36 100644 --- a/nixos/home/hyprland.nix +++ b/nixos/home/hyprland.nix @@ -3,9 +3,9 @@ symlink = config.lib.file.mkOutOfStoreSymlink; in { - home.packages = [ - pkgs.sassc - pkgs.coloryou + home.packages = with pkgs; [ + sassc + coloryou ]; imports = [ diff --git a/nixos/home/theme.nix b/nixos/home/theme.nix index fdc8d239..0c28e1fd 100644 --- a/nixos/home/theme.nix +++ b/nixos/home/theme.nix @@ -1,5 +1,11 @@ -{ pkgs, ... }: - +{ pkgs, ... }: let + dracula-xresources = pkgs.fetchFromGitHub { + owner = "dracula"; + repo = "xresources"; + rev = "539ef24e9b0c5498a82d59bfa2bad9b618d832a3"; + sha256 = "sha256-6fltsAluqOqYIh2NX0I/LC3WCWkb9Fn8PH6LNLBQbrY="; + }; +in { gtk = { enable = true; @@ -19,6 +25,8 @@ }; }; + xresources.extraConfig = builtins.readFile("${dracula-xresources}/Xresources"); + xdg.configFile = { "../.themes/Dracula".source = "${pkgs.dracula-theme}/share/themes/Dracula";