mirror of
https://github.com/librephoenix/nixos-config
synced 2025-10-19 18:14:04 +05:30
Updated stylix schema
This commit is contained in:
parent
c7a8e44bb6
commit
90d9b7a6b8
293 changed files with 1463 additions and 1259 deletions
|
@ -1,23 +1,19 @@
|
|||
{ config, lib, pkgs, inputs, userSettings, ... }:
|
||||
|
||||
let
|
||||
themePath = "../../../themes"+("/"+userSettings.theme+"/"+userSettings.theme)+".yaml";
|
||||
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../themes"+("/"+userSettings.theme)+"/polarity.txt"));
|
||||
backgroundUrl = builtins.readFile (./. + "../../../themes"+("/"+userSettings.theme)+"/backgroundurl.txt");
|
||||
backgroundSha256 = builtins.readFile (./. + "../../../themes/"+("/"+userSettings.theme)+"/backgroundsha256.txt");
|
||||
theme = import (./. + "../../../themes"+("/"+userSettings.theme));
|
||||
in
|
||||
{
|
||||
|
||||
imports = [ inputs.stylix.homeManagerModules.stylix ];
|
||||
|
||||
home.file.".currenttheme".text = userSettings.theme;
|
||||
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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue