diff options
| -rw-r--r-- | users/ryan/linux.nix | 2 | ||||
| -rw-r--r-- | 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 @@ | |||
| 1 | { config, pkgs, lib, inputs, ... }: | 1 | { pkgs, lib, inputs, ... }: |
| 2 | 2 | ||
| 3 | { | 3 | { |
| 4 | imports = [ | 4 | 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 @@ | |||
| 1 | { pkgs, lib, inputs, ... }: | 1 | { config, pkgs, lib, inputs, ... }: |
| 2 | 2 | ||
| 3 | { | 3 | { |
| 4 | systemd.user.startServices = false; | 4 | systemd.user.startServices = false; |
| @@ -10,6 +10,17 @@ | |||
| 10 | "$HOME_ENVIRONMENT/on-first-login" | 10 | "$HOME_ENVIRONMENT/on-first-login" |
| 11 | unset HOME_ENVIRONMENT | 11 | unset HOME_ENVIRONMENT |
| 12 | fi | 12 | fi |
| 13 | |||
| 14 | # /etc/profile normally puts ~/.config/guix/current (the guix pull | ||
| 15 | # profile with our actual channels: nonguix, rosenthal, ...) ahead of | ||
| 16 | # /run/current-system/profile on PATH, but that only happens for bash | ||
| 17 | # login shells -- zsh never sources /etc/profile. Without this, `guix` | ||
| 18 | # resolves to the bare system profile's guix, which doesn't know about | ||
| 19 | # our channels. | ||
| 20 | if [ -d "$HOME/.config/guix/current" ]; then | ||
| 21 | export PATH="$HOME/.config/guix/current/bin:$PATH" | ||
| 22 | export INFOPATH="$HOME/.config/guix/current/share/info''${INFOPATH:+:}$INFOPATH" | ||
| 23 | fi | ||
| 13 | ''; | 24 | ''; |
| 14 | 25 | ||
| 15 | dconf.enable = false; | 26 | dconf.enable = false; |
| @@ -20,6 +31,21 @@ | |||
| 20 | 31 | ||
| 21 | programs.gpg.scdaemonSettings.disable-ccid = true; | 32 | programs.gpg.scdaemonSettings.disable-ccid = true; |
| 22 | 33 | ||
| 34 | # Guix needs a special fonts.conf file in the user env since it doesn't | ||
| 35 | # have one in /etc/fonts/fonts.conf from nixos | ||
| 36 | xdg.configFile."fontconfig-nix/fonts.conf".text = '' | ||
| 37 | <?xml version='1.0'?> | ||
| 38 | <!DOCTYPE fontconfig SYSTEM 'fonts.dtd'> | ||
| 39 | <fontconfig> | ||
| 40 | <include ignore_missing="yes">${pkgs.fontconfig.out}/etc/fonts/conf.d</include> | ||
| 41 | <include ignore_missing="yes">${config.home.homeDirectory}/.config/fontconfig/conf.d</include> | ||
| 42 | <dir>${config.home.homeDirectory}/.guix-home/profile/share/fonts</dir> | ||
| 43 | <cachedir>${config.home.homeDirectory}/.cache/fontconfig</cachedir> | ||
| 44 | </fontconfig> | ||
| 45 | ''; | ||
| 46 | |||
| 47 | home.sessionVariables.FONTCONFIG_FILE = "${config.home.homeDirectory}/.config/fontconfig-nix/fonts.conf"; | ||
| 48 | |||
| 23 | home.packages = [ | 49 | home.packages = [ |
| 24 | (pkgs.writeScriptBin "hyprlock" '' | 50 | (pkgs.writeScriptBin "hyprlock" '' |
| 25 | #! ${pkgs.bash}/bin/bash | 51 | #! ${pkgs.bash}/bin/bash |
