2023-05-28 06:37:33 +05:30
|
|
|
{ config, pkgs, myTheme, myThemePolarity, myBackgroundUrl, myBackgroundSha256, ... }:
|
2023-05-13 21:48:30 +05:30
|
|
|
|
2023-05-14 01:06:06 +05:30
|
|
|
let
|
|
|
|
myFont = "Inconsolata";
|
|
|
|
myFontPkg = pkgs.inconsolata;
|
2023-05-27 22:29:14 +05:30
|
|
|
myThemePath = "../../../themes/"+myTheme+".yaml";
|
2023-05-14 01:06:06 +05:30
|
|
|
in
|
2023-05-13 21:48:30 +05:30
|
|
|
{
|
2023-05-29 05:53:59 +05:30
|
|
|
home.file.".currenttheme".text = myTheme;
|
2023-05-13 21:48:30 +05:30
|
|
|
stylix.autoEnable = false;
|
2023-05-28 06:37:33 +05:30
|
|
|
stylix.polarity = myThemePolarity;
|
2023-05-13 21:48:30 +05:30
|
|
|
stylix.image = pkgs.fetchurl {
|
2023-05-23 07:09:15 +05:30
|
|
|
url = myBackgroundUrl;
|
|
|
|
sha256 = myBackgroundSha256;
|
2023-05-13 21:48:30 +05:30
|
|
|
};
|
2023-05-27 22:29:14 +05:30
|
|
|
stylix.base16Scheme = ./. + myThemePath;
|
2023-05-14 01:06:06 +05:30
|
|
|
|
|
|
|
stylix.fonts = {
|
|
|
|
monospace = {
|
|
|
|
name = myFont;
|
|
|
|
package = myFontPkg;
|
|
|
|
};
|
|
|
|
serif = {
|
|
|
|
name = myFont;
|
|
|
|
package = myFontPkg;
|
|
|
|
};
|
|
|
|
sansSerif = {
|
|
|
|
name = myFont;
|
|
|
|
package = myFontPkg;
|
|
|
|
};
|
|
|
|
emoji = {
|
|
|
|
name = "Noto Color Emoji";
|
|
|
|
package = pkgs.noto-fonts-emoji-blob-bin;
|
|
|
|
};
|
|
|
|
sizes = {
|
|
|
|
terminal = 18;
|
|
|
|
applications = 14;
|
|
|
|
popups = 12;
|
|
|
|
desktop = 12;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-05-13 21:48:30 +05:30
|
|
|
stylix.targets.alacritty.enable = true;
|
|
|
|
stylix.targets.kitty.enable = true;
|
|
|
|
stylix.targets.gtk.enable = true;
|
|
|
|
stylix.targets.rofi.enable = true;
|
|
|
|
programs.rofi.enable = true;
|
|
|
|
stylix.targets.feh.enable = true;
|
|
|
|
programs.feh.enable = true;
|
2023-05-23 07:09:15 +05:30
|
|
|
home.file.".fehbg-stylix".text = ''
|
|
|
|
#!/bin/sh
|
|
|
|
feh --no-fehbg --bg-fill ''+
|
|
|
|
pkgs.fetchurl {
|
|
|
|
url = myBackgroundUrl;
|
|
|
|
sha256 = myBackgroundSha256;
|
|
|
|
}+'';
|
|
|
|
'';
|
|
|
|
home.file.".fehbg-stylix".executable = true;
|
2023-05-13 21:48:30 +05:30
|
|
|
}
|