1
Fork 0
mirror of https://https.git.savannah.gnu.org/git/guix.git/ synced 2025-07-09 23:50:47 +02:00
guix/gnu/system
Maxim Cournoyer c743d646ee
system: Factorize bashrc default configuration.
This factorizes out the remaining bashrc bits from /etc/skel/.bashrc to a the
template used for both /etc/bashrc on Guix System and ~/.bashrc for
home-bash-service-type.

Rationale: The use of /etc/skel introduce state: the file is only copied
originally when the user account is created, and never (automatically)
refreshed again.

* gnu/system.scm (operating-system-etc-service):
<profile>: Guard against souring /etc/bashrc in non-interactive, SSH case.
<bashrc>: Use %default-bashrc, having migrated the remaining definitions to...
* gnu/system/shadow.scm (%default-bashrc): ... here.  Factorize aliases to...
* gnu/services.scm (%default-bash-aliases): ... here.
(%default-bashrc-d-aliases): New variable.
(%default-etc-bashrc-d-files): Include it in the default configuration.
* gnu/services/base.scm (%base-services): Register etc-bashrc-d-service-type.
* gnu/home/services/shells.scm (add-bash-configuration): Do not set PS1, now
part of %default-bashrc.
(home-bash-configuration) [guix-defaults?]: Update doc.
[aliases]: Set %default-bash-aliases as the default value.  Update doc.
* doc/guix.texi (Shells Home Services): Update documentation.
(Service Reference): Update example.

Change-Id: I340c614983a78fd20a9c4a9705e7fc542ae9b513
2025-05-26 13:43:03 +09:00
..
examples maint: Change main repository URL to git.guix.gnu.org. 2025-05-23 11:19:07 +02:00
images images: visionfive2: Add support for booting from nvme. 2025-04-08 14:58:19 +08:00
accounts.scm system: Add /etc/subuid and /etc/subgid support. 2024-12-18 18:32:40 +01:00
file-systems.scm Revert "file-systems: %base-file-systems: Add tmpfs /run." 2025-03-05 14:45:15 +08:00
hurd.scm system: hurd: Use the regular gnumach as default kernel. 2025-05-24 09:03:37 +02:00
image.scm
install.scm install: Do not leak local checkout URL. 2025-05-06 00:16:33 +02:00
keyboard.scm
linux-container.scm linux-container: Do not attempt to lock mounts for ‘guix system container’. 2025-05-12 10:40:02 +02:00
linux-initrd.scm linux-initrd: Add mmc_block. 2025-04-08 14:57:23 +08:00
locale.scm
mapped-devices.scm mapped-devices/luks: Add support for --allow-discards. 2025-03-22 22:53:13 +09:00
nss.scm
pam.scm system: pam: Export pam records predicates. 2024-12-18 18:32:40 +01:00
privilege.scm
setuid.scm
shadow.scm system: Factorize bashrc default configuration. 2025-05-26 13:43:03 +09:00
uuid.scm
vm.scm vm: Account for an upstream change in the name of the Cirrus kernel module. 2025-04-27 02:29:41 -04:00