mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Optimized some specialArgs and module argument use
This commit is contained in:
parent
2d75530b6d
commit
18c8365f40
76 changed files with 282 additions and 284 deletions
|
@ -1,11 +1,11 @@
|
|||
{ config, lib, pkgs, stylix, theme, font, fontPkg, ... }:
|
||||
{ lib, pkgs, stylix, userSettings, ... }:
|
||||
|
||||
let
|
||||
themePath = "../../../themes/"+theme+"/"+theme+".yaml";
|
||||
themePolarity = lib.removeSuffix "\n" (builtins.readFile (./. + "../../../themes"+("/"+theme)+"/polarity.txt"));
|
||||
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"+("/"+theme)+"/backgroundurl.txt");
|
||||
backgroundSha256 = builtins.readFile (./. + "../../../themes/"+("/"+theme)+"/backgroundsha256.txt");
|
||||
backgroundUrl = builtins.readFile (./. + "../../../themes"+("/"+userSettings.theme)+"/backgroundurl.txt");
|
||||
backgroundSha256 = builtins.readFile (./. + "../../../themes/"+("/"+userSettings.theme)+"/backgroundsha256.txt");
|
||||
in
|
||||
{
|
||||
imports = [ stylix.nixosModules.stylix ];
|
||||
|
@ -19,16 +19,16 @@ in
|
|||
stylix.base16Scheme = ./. + themePath;
|
||||
stylix.fonts = {
|
||||
monospace = {
|
||||
name = font;
|
||||
package = fontPkg;
|
||||
name = userSettings.font;
|
||||
package = userSettings.fontPkg;
|
||||
};
|
||||
serif = {
|
||||
name = font;
|
||||
package = fontPkg;
|
||||
name = userSettings.font;
|
||||
package = userSettings.fontPkg;
|
||||
};
|
||||
sansSerif = {
|
||||
name = font;
|
||||
package = fontPkg;
|
||||
name = userSettings.font;
|
||||
package = userSettings.fontPkg;
|
||||
};
|
||||
emoji = {
|
||||
name = "Noto Color Emoji";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue