diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2024-12-13 23:37:03 +0100 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2025-01-16 22:32:11 +0100 |
| commit | 0aa45f18543552f2396414ab130dab40f8969d27 (patch) | |
| tree | 7e28f838a4689df6295e6860bc2e82cb8e04b315 /doc/he-config-bare-bones.scm | |
| parent | f68060a10182f4ff02eebaa2c426124eb92f97d8 (diff) | |
home: Define ‘%base-home-services’.
* 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
Diffstat (limited to 'doc/he-config-bare-bones.scm')
| -rw-r--r-- | doc/he-config-bare-bones.scm | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/doc/he-config-bare-bones.scm b/doc/he-config-bare-bones.scm index f948d85277f..844d666110f 100644 --- a/doc/he-config-bare-bones.scm +++ b/doc/he-config-bare-bones.scm | |||
| @@ -7,19 +7,20 @@ | |||
| 7 | 7 | ||
| 8 | 8 | ||
| 9 | (home-environment | 9 | (home-environment |
| 10 | (packages (list htop)) | 10 | (packages (list htop)) |
| 11 | (services | 11 | (services |
| 12 | (list | 12 | (append (list |
| 13 | (service home-bash-service-type | 13 | (service home-bash-service-type |
| 14 | (home-bash-configuration | 14 | (home-bash-configuration |
| 15 | (guix-defaults? #t) | 15 | (guix-defaults? #t) |
| 16 | (bash-profile (list (plain-file "bash-profile" "\ | 16 | (bash-profile (list (plain-file "bash-profile" "\ |
| 17 | export HISTFILE=$XDG_CACHE_HOME/.bash_history"))))) | 17 | export HISTFILE=$XDG_CACHE_HOME/.bash_history"))))) |
| 18 | 18 | ||
| 19 | (simple-service 'test-config | 19 | (simple-service 'test-config |
| 20 | home-xdg-configuration-files-service-type | 20 | home-xdg-configuration-files-service-type |
| 21 | (list `("test.conf" | 21 | (list `("test.conf" |
| 22 | ,(plain-file "tmp-file.txt" | 22 | ,(plain-file "tmp-file.txt" |
| 23 | "the content of | 23 | "the content of |
| 24 | ~/.config/test.conf"))))))) | 24 | ~/.config/test.conf"))))) |
| 25 | %base-home-services))) | ||
| 25 | 26 | ||
