diff options
-rw-r--r-- | linux.nix | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,10 +1,10 @@ -{ pkgs, ... }: +{ pkgs, lib, ... }: let solarized-xresources = ./xresources; - themeVar = builtins.getEnv "XTHEME"; - defaultTheme = "light"; - theme = if themeVar == "" then defaultTheme else themeVar; + homedir = builtins.getEnv "HOME"; + theme = lib.removeSuffix "\n" + (builtins.readFile "${homedir}/.local/share/xtheme"); colors = { "dark" = { background = "#292b2e"; |