<excelsiora>
I hear home-manager will make all my wildest dreams come true.
<excelsiora>
how do you declare fonts in your home-manager?
<energizer>
my sessionVariables aren't being set, how can i debug?
<energizer>
(home.sessionVariables)
<energizer>
eh maybe i just need to reboot
<energizer>
yep
<energizer>
excelsiora: i do my font configuration at system level, but maybe nixpkgs.config.fonts would work?
<energizer>
not sure
<cole-h>
energizer: If you happen to be starting a WM from the tty, you should unset `__HM_SESS_VARS_SOURCED` so that your terminals will source the sessionVars anew
<excelsiora>
energizer: how do you set them, are you writing xml files or just dumping them into a directory or symlinking to nix fonts or what?
mexisme_ has quit [Read error: Connection reset by peer]
mexisme_ has joined #home-manager
mexisme has joined #home-manager
mexisme_ has quit [Ping timeout: 272 seconds]
mexisme_ has joined #home-manager
mexisme has quit [Ping timeout: 272 seconds]
<energizer>
excelsiora: in /etc/nixos/configuration.nix i set fonts =
<energizer>
see `man configuration.nix` fonts section
mexisme_ has quit [Ping timeout: 246 seconds]
mexisme_ has joined #home-manager
mexisme_ has quit [Ping timeout: 260 seconds]
mexisme_ has joined #home-manager
mexisme has joined #home-manager
mexisme_ has quit [Ping timeout: 246 seconds]
mexisme_ has joined #home-manager
mexisme has quit [Ping timeout: 246 seconds]
andi- has quit [Ping timeout: 246 seconds]
andi- has joined #home-manager
cole-h has quit [Quit: Goodbye]
klntsky has quit [Remote host closed the connection]
klntsky has joined #home-manager
mexisme_ has quit [Ping timeout: 260 seconds]
mexisme_ has joined #home-manager
ehmry has quit [Ping timeout: 240 seconds]
ehmry has joined #home-manager
c0c0 has quit [Ping timeout: 264 seconds]
c0c0 has joined #home-manager
mexisme has joined #home-manager
mexisme_ has quit [Ping timeout: 246 seconds]
__monty__ has joined #home-manager
mexisme has quit [Quit: WeeChat 2.7.1]
hax404 has quit [Remote host closed the connection]
hax404 has joined #home-manager
hax404 has quit [Ping timeout: 260 seconds]
hax404 has joined #home-manager
hax404 has quit [Ping timeout: 260 seconds]
hax404 has joined #home-manager
hax404 has quit [Ping timeout: 246 seconds]
hax404 has joined #home-manager
hax404 has quit [Remote host closed the connection]
spacekookie has quit [Quit: No Ping reply in 60 seconds.]
spacekookie has joined #home-manager
<rycee>
excelsiora: Put the font package in `home.packages`.
<rycee>
excelsiora: And put `fonts.fontconfig.enable = true` in your configuration
<energizer>
i'm setting a file in xdg.configFile."hexchat/hexchat.conf".text = myconf; Can i make that file read-only? hexchat keeps changing it
<rycee>
energizer: No, not directly. But you could always add an activation block that runs chmod if you want.
<energizer>
rycee: how do i do that?
<energizer>
oh i see, home.activation
<rycee>
Yeah, use something like `lib.hm.dag.entryAfter ["linkGeneration"] "$DRY_RUN_CMD chmod $VERBOSE_ARG …"` to run the command after the files have been linked into place.
<energizer>
cool
<energizer>
how do i refer to the xdg config path in there?
<energizer>
is there something like ${xdgConfig} ?
<rycee>
Right, you can't change the mode of a symbolic link. You can copy the file into place instead and set whichever mode you want.
<energizer>
is there an example of how to copy instead of link?
<rycee>
I guess something similar to `cp -f "${./path/to/file}" "${config.xdg.configHome}/hexchat/servlist.conf" && chmod 400 "${config.xdg.configHome}/hexchat/servlist.conf"` should be fine.
<rycee>
You need to remove the file from `home.path`, though.
<mmatthieu>
Never saw that channel that active before covid-19 ^^
<mmatthieu>
(and many other as well)
hax404 has quit [Remote host closed the connection]