mirror of
https://github.com/librephoenix/nixos-config
synced 2025-01-19 15:15:52 +05:30
60 lines
1.3 KiB
Nix
60 lines
1.3 KiB
Nix
{ config, pkgs, myTheme, myThemePolarity, myBackgroundUrl, myBackgroundSha256, ... }:
|
|
|
|
let
|
|
myFont = "Inconsolata";
|
|
myFontPkg = pkgs.inconsolata;
|
|
myThemePath = "../../../themes/"+myTheme+".yaml";
|
|
in
|
|
{
|
|
home.file.".currenttheme".text = myTheme;
|
|
stylix.autoEnable = false;
|
|
stylix.polarity = myThemePolarity;
|
|
stylix.image = pkgs.fetchurl {
|
|
url = myBackgroundUrl;
|
|
sha256 = myBackgroundSha256;
|
|
};
|
|
stylix.base16Scheme = ./. + myThemePath;
|
|
|
|
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;
|
|
};
|
|
};
|
|
|
|
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;
|
|
home.file.".fehbg-stylix".text = ''
|
|
#!/bin/sh
|
|
feh --no-fehbg --bg-fill ''+
|
|
pkgs.fetchurl {
|
|
url = myBackgroundUrl;
|
|
sha256 = myBackgroundSha256;
|
|
}+'';
|
|
'';
|
|
home.file.".fehbg-stylix".executable = true;
|
|
}
|