mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-18 13:36:36 +01:00
0aa45f1854
* gnu/home.scm (%base-home-services): New variable. (<home-environment>)[services]: Change default to ‘%base-home-services’. * guix/scripts/home/import.scm (manifest+configuration-files->code): Use ‘%base-home-services’ by default. * tests/home-import.scm (match-home-environment-no-services) (match-home-environment-transformations) (match-home-environment-no-services-nor-packages) (match-home-environment-bash-service) (match-home-environment-bash-service-with-alias): Adjust accordingly. * doc/he-config-bare-bones.scm: Use ‘%base-home-services’. * doc/guix.texi (Declaring the Home Environment): Add index entry for ‘%base-home-services’. Change-Id: Id95ede62b97a976aad138bfc4b63fc0bdf37c7de
26 lines
907 B
Scheme
26 lines
907 B
Scheme
(use-modules (gnu home)
|
|
(gnu home services)
|
|
(gnu home services shells)
|
|
(gnu services)
|
|
(gnu packages admin)
|
|
(guix gexp))
|
|
|
|
|
|
(home-environment
|
|
(packages (list htop))
|
|
(services
|
|
(append (list
|
|
(service home-bash-service-type
|
|
(home-bash-configuration
|
|
(guix-defaults? #t)
|
|
(bash-profile (list (plain-file "bash-profile" "\
|
|
export HISTFILE=$XDG_CACHE_HOME/.bash_history")))))
|
|
|
|
(simple-service 'test-config
|
|
home-xdg-configuration-files-service-type
|
|
(list `("test.conf"
|
|
,(plain-file "tmp-file.txt"
|
|
"the content of
|
|
~/.config/test.conf")))))
|
|
%base-home-services)))
|
|
|