aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2023-12-13 03:53:31 -0300
committerEuAndreh <eu@euandre.org>2023-12-13 03:53:33 -0300
commit367a0c4d464bbecb46926f14fdf80a55efa14c32 (patch)
tree42dfdec263e6f5cbf70f89f8553abfb326f5bd1a /etc
parentbin/clean: Fix "if" order (diff)
downloaddotfiles-367a0c4d464bbecb46926f14fdf80a55efa14c32.tar.gz
dotfiles-367a0c4d464bbecb46926f14fdf80a55efa14c32.tar.xz
etc/guix/system.scm: Enable core dumps by default
Start with no limit on the size of the core dump.
Diffstat (limited to 'etc')
-rw-r--r--etc/guix/system.scm8
-rw-r--r--etc/sh/rc2
2 files changed, 10 insertions, 0 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index 24a7201..1745130 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -26,6 +26,7 @@
security-token
sound
ssh
+ sysctl
virtualization
vpn
web
@@ -232,6 +233,13 @@ Seiko Epson Color Ink Jet Printers.")
EndSection
"#)))))
(modify-services %desktop-services
+ (sysctl-service-type config =>
+ (sysctl-configuration
+ (inherit config)
+ (settings
+ (append
+ (sysctl-configuration-settings config)
+ '(("kernel/core_pattern" . "/var/crash/core-%e-%s-%u-%g-%p-%t"))))))
(rottlog-service-type config =>
(rottlog-configuration
(inherit config)
diff --git a/etc/sh/rc b/etc/sh/rc
index 8abef18..10158e1 100644
--- a/etc/sh/rc
+++ b/etc/sh/rc
@@ -3,6 +3,8 @@
export ENV=~/.profile
+ulimit -c unlimited
+
export XDG_DATA_DIRS="$XDG_DATA_HOME/flatpak/exports/share:/var/lib/flatpak/exports/share${XDG_DATA_DIRS:+:}${XDG_DATA_DIRS:-}"