home: Add location field. * home.scm (home): Add field for provenance information. (home-location): New procedure. Signed-off-by: Julien Lepiller <julien@lepiller.eu>
home.scm
35 | 35 | home | |
36 | 36 | home? | |
37 | 37 | home-data-directory | |
38 | + | home-location | |
38 | 39 | home-guix-symlink | |
39 | 40 | home-guix-config-symlink | |
40 | 41 | home-local-symlink | |
… | |||
394 | 395 | (cache-symlink | |
395 | 396 | (string-append (home-data-directory this-record) "/.cache"))))) | |
396 | 397 | (configurations home-configurations | |
397 | - | (default (list (user-home root-home-type))))) | |
398 | + | (default (list (user-home root-home-type)))) | |
399 | + | (location home-location | |
400 | + | (default (and=> (current-source-location) | |
401 | + | source-properties->location)) | |
402 | + | (innate))) | |
398 | 403 | ||
399 | 404 | (define-record-type* <base-home-configuration> base-home-configuration | |
400 | 405 | make-base-home-configuration |