From 397af8b5b8bf6d08f26292207ce2aaffc095772b Mon Sep 17 00:00:00 2001 From: Ryan Schanzenbacher Date: Mon, 24 Aug 2026 01:46:13 -0400 Subject: Should be good, need to clean slop still --- users/ryan/linux.nix | 2 +- users/ryan/linux/guix.nix | 28 +++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 2 deletions(-) diff --git a/users/ryan/linux.nix b/users/ryan/linux.nix index 3935de5..fa2bacd 100644 --- a/users/ryan/linux.nix +++ b/users/ryan/linux.nix @@ -1,4 +1,4 @@ -{ config, pkgs, lib, inputs, ... }: +{ pkgs, lib, inputs, ... }: { imports = [ diff --git a/users/ryan/linux/guix.nix b/users/ryan/linux/guix.nix index 65e7053..21fea52 100644 --- a/users/ryan/linux/guix.nix +++ b/users/ryan/linux/guix.nix @@ -1,4 +1,4 @@ -{ pkgs, lib, inputs, ... }: +{ config, pkgs, lib, inputs, ... }: { systemd.user.startServices = false; @@ -10,6 +10,17 @@ "$HOME_ENVIRONMENT/on-first-login" unset HOME_ENVIRONMENT fi + + # /etc/profile normally puts ~/.config/guix/current (the guix pull + # profile with our actual channels: nonguix, rosenthal, ...) ahead of + # /run/current-system/profile on PATH, but that only happens for bash + # login shells -- zsh never sources /etc/profile. Without this, `guix` + # resolves to the bare system profile's guix, which doesn't know about + # our channels. + if [ -d "$HOME/.config/guix/current" ]; then + export PATH="$HOME/.config/guix/current/bin:$PATH" + export INFOPATH="$HOME/.config/guix/current/share/info''${INFOPATH:+:}$INFOPATH" + fi ''; dconf.enable = false; @@ -20,6 +31,21 @@ programs.gpg.scdaemonSettings.disable-ccid = true; + # Guix needs a special fonts.conf file in the user env since it doesn't + # have one in /etc/fonts/fonts.conf from nixos + xdg.configFile."fontconfig-nix/fonts.conf".text = '' + + + + ${pkgs.fontconfig.out}/etc/fonts/conf.d + ${config.home.homeDirectory}/.config/fontconfig/conf.d + ${config.home.homeDirectory}/.guix-home/profile/share/fonts + ${config.home.homeDirectory}/.cache/fontconfig + + ''; + + home.sessionVariables.FONTCONFIG_FILE = "${config.home.homeDirectory}/.config/fontconfig-nix/fonts.conf"; + home.packages = [ (pkgs.writeScriptBin "hyprlock" '' #! ${pkgs.bash}/bin/bash -- cgit v1.3.1