2023-10-29 00:49:22 +02:00
{ pkgs , config , . . . }:
let
stylix = builtins . fetchGit {
url = " h t t p s : / / g i t h u b . c o m / d a n t h / s t y l i x . g i t " ;
ref = " r e l e a s e - 2 3 . 0 5 " ;
} ;
in
{
imports = [ ( import stylix ) . homeManagerModules . stylix ] ;
stylix = {
2023-10-29 12:15:56 +01:00
# FIXME Changeable at runtime
2023-10-29 00:49:22 +02:00
base16Scheme = " ${ pkgs . base16-schemes } / s h a r e / t h e m e s / s o l a r i z e d - d a r k . y a m l " ;
image = builtins . fetchurl {
url = " h t t p s : / / g e t . w a l l h e r e . c o m / p h o t o / s u n l i g h t - a b s t r a c t - m i n i m a l i s m - g r e e n - s i m p l e - c i r c l e - l i g h t - l e a f - w a v e - m a t e r i a l - l i n e - w i n g - c o m p u t e r - w a l l p a p e r - f o n t - c l o s e - u p - m a c r o - p h o t o g r a p h y - 1 2 4 3 5 0 . p n g " ;
sha256 = " s h a 2 5 6 : 1 z f q 3 f 3 v 3 4 i 4 5 m i 7 2 p k f q p h m 8 k b h c z s g 2 6 0 x j f l 6 d b y d y 9 1 d 7 y 9 3 " ;
} ;
# FIXME This doesn't work
2023-10-29 12:15:56 +01:00
2023-11-12 21:53:52 +01:00
fonts = {
sizes = {
applications = 10 ;
terminal = 10 ;
} ;
monospace = {
2023-11-21 21:01:56 +01:00
package = pkgs . nerdfonts . override {
fonts = [ " D e j a V u S a n s M o n o " ] ; # Choose from https://github.com/NixOS/nixpkgs/blob/6ba3207643fd27ffa25a172911e3d6825814d155/pkgs/data/fonts/nerdfonts/shas.nix
} ;
2023-11-12 21:53:52 +01:00
name = " D e j a V u S a n s M N e r d F o n t " ;
} ;
2023-11-02 21:57:06 +01:00
} ;
2023-10-29 12:15:56 +01:00
2023-11-20 22:09:28 +01:00
targets = {
2023-11-21 21:01:56 +01:00
vim . enable = false ; # FIXME Not compatible with nixvim for now (there's a MR)
i3 . enable = false ; # I prefer my own styles
tmux . enable = false ; # Using another theme
2023-11-20 22:09:28 +01:00
} ;
2023-10-29 00:49:22 +02:00
} ;
# Fix https://nix-community.github.io/home-manager/index.html#_why_do_i_get_an_error_message_about_literal_ca_desrt_dconf_literal_or_literal_dconf_service_literal
2023-11-05 21:36:11 +01:00
# home.packages = [ pkgs.dconf ];
dconf . enable = false ; # Otherwise standalone home-manager complains it can't find /etc/dbus-1/session.conf on Arch.
# Symlinking it to /usr/share/dbus-1/session.conf goes further but not much.
2023-11-20 22:09:28 +01:00
2023-10-29 00:49:22 +02:00
}