dev.fron.io rc / 25a478d
home(leaf): use profile file Tony Olagbaiye 10 days ago
1 changed file(s) with 9 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
00 (define-module (rc home leaf)
11 #:use-module (guix gexp)
22 #:use-module (guix packages)
3 #:use-module (guix profiles)
34 #:use-module (guix utils)
45 #:use-module (gnu system)
56 #:use-module (gnu services)
7677 (guix-defaults? #t)
7778 (bash-profile '("export HISTFILE=$XDG_CACHE_HOME/.bash_history"))))
7879
80 (simple-service 'add-imperative-profile
81 home-shell-profile-service-type
82 (list "GUIX_PROFILE=$HOME/.guix-profile"
83 "source $GUIX_PROFILE/etc/profile"))
84
7985 (service home-fish-service-type
8086 (home-fish-configuration
8187 (package fish)
8389 #~(string-append "set fish_function_path $fish_function_path "
8490 #$fish-foreign-env
8591 "/share/fish/functions")
86 "fenv source $HOME/.guix-home/setup-environment"
87 "fenv $HOME/.guix-home/on-first-login"
88 "fenv source $HOME/.guix-profile/etc/profile"))
92 "not set -q __fish_login_config_sourced and begin"
93 " fenv source $HOME/.profile"
94 "end"))
8995 (environment-variables
9096 `(("VISUAL" . "nvim")
9197 ("EDITOR" . "nvim")