Updated stylix schema
This commit is contained in:
@@ -1,22 +1,19 @@
|
||||
{ lib, pkgs, inputs, userSettings, ... }:
|
||||
|
||||
let
|
||||
themePath = "../../../themes/"+userSettings.theme+"/"+userSettings.theme+".yaml";
|
||||
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
|
||||
myLightDMTheme = if themePolarity == "light" then "Adwaita" else "Adwaita-dark";
|
||||
backgroundUrl = builtins.readFile (./. + "../../../themes"+("/"+userSettings.theme)+"/backgroundurl.txt");
|
||||
backgroundSha256 = builtins.readFile (./. + "../../../themes/"+("/"+userSettings.theme)+"/backgroundsha256.txt");
|
||||
theme = import (./. + "../../../themes"+("/"+userSettings.theme));
|
||||
myLightDMTheme = if theme.polarity == "light" then "Adwaita" else "Adwaita-dark";
|
||||
in
|
||||
{
|
||||
imports = [ inputs.stylix.nixosModules.stylix ];
|
||||
|
||||
stylix.autoEnable = false;
|
||||
stylix.polarity = themePolarity;
|
||||
stylix.polarity = theme.polarity;
|
||||
stylix.image = pkgs.fetchurl {
|
||||
url = backgroundUrl;
|
||||
sha256 = backgroundSha256;
|
||||
url = theme.backgroundUrl;
|
||||
sha256 = theme.backgroundSha256;
|
||||
};
|
||||
stylix.base16Scheme = ./. + themePath;
|
||||
stylix.base16Scheme = ./. + theme;
|
||||
stylix.fonts = {
|
||||
monospace = {
|
||||
name = userSettings.font;
|
||||
|
Reference in New Issue
Block a user