aboutsummaryrefslogtreecommitdiff
path: root/etc/guix/system.scm
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2025-02-17 10:56:15 -0300
committerEuAndreh <eu@euandre.org>2025-02-17 17:02:34 -0300
commitfd9f53f68b822e1ea37349541b1af3edacaf5511 (patch)
tree84b60e8c6bd3995d8adcf6fdb06fc6f015e8249b /etc/guix/system.scm
parentbin/player: bail-out broken "player-f" subcommand (diff)
downloaddotfiles-fd9f53f68b822e1ea37349541b1af3edacaf5511.tar.gz
dotfiles-fd9f53f68b822e1ea37349541b1af3edacaf5511.tar.xz
etc/guix/system.scm: Small tweaks while setting up novinho
Diffstat (limited to 'etc/guix/system.scm')
-rw-r--r--etc/guix/system.scm36
1 files changed, 14 insertions, 22 deletions
diff --git a/etc/guix/system.scm b/etc/guix/system.scm
index 8e45fb3..af9b24a 100644
--- a/etc/guix/system.scm
+++ b/etc/guix/system.scm
@@ -1,8 +1,8 @@
(use-modules
((guix licenses) #:prefix license:)
- ((nonguix licenses) #:prefix ng.license:)
((nongnu packages linux) #:prefix ng.linux:)
((nongnu system linux-initrd) #:prefix ng.initrd:)
+ ((nonguix licenses) #:prefix ng.license:)
((org euandre queue) #:prefix q:)
((xyz euandreh heredoc) #:prefix heredoc:)
(gnu)
@@ -17,7 +17,6 @@
package-management
wm)
(use-service-modules
- admin
cups
desktop
docker
@@ -30,7 +29,6 @@
sysctl
virtualization
vpn
- web
xorg)
(heredoc:enable-syntax)
@@ -119,7 +117,7 @@ Seiko Epson Color Ink Jet Printers.")
(append
(list
(locale-definition
- (name "pt_BR.UTF-8")
+ (name "pt_BR.UTF-8")
(source "pt_BR")))
%default-locale-definitions))
(timezone "America/Sao_Paulo")
@@ -139,7 +137,7 @@ Seiko Epson Color Ink Jet Printers.")
(comment "EuAndreh")
(group "users")
(supplementary-groups '("netdev" "audio" "video" "wheel" "kvm" "docker" "dialout"))))
- %base-user-accounts))
+ %base-user-accounts))
(packages
(append
(map (compose list specification->package+output symbol->string)
@@ -152,6 +150,7 @@ Seiko Epson Color Ink Jet Printers.")
(services
(append
(list
+ (service gpm-service-type)
(service bluetooth-service-type)
(service tlp-service-type)
(service thermald-service-type)
@@ -190,7 +189,7 @@ Seiko Epson Color Ink Jet Printers.")
(list
(wireguard-peer
(name "toph")
- (endpoint (string-append "euandre.org" ":51820"))
+ (endpoint "euandre.org:51820")
(public-key "8jJgTIWrs7HNWlJXOwl8A0DKqIiAGa4hhh/hcXm4EUs=")
(allowed-ips '("10.0.0.0/32"))
(keep-alive 25))))))
@@ -231,13 +230,8 @@ Seiko Epson Color Ink Jet Printers.")
(settings
(append
(sysctl-configuration-settings config)
- '(("vm/swappiness" . "200") ;; chorume: this should be calculated based on (RAM size)/(swap size) ration
+ '(("vm/swappiness" . "200") ;; chorume: this should be calculated based on (RAM size)/(swap size) ratio
("kernel/core_pattern" . "/var/crash/core-%t-%e-%p-%s-%u-%g"))))))
- #;
- (rottlog-service-type config =>
- (rottlog-configuration
- (inherit config)
- (rottlog q:rottlog-mailutils-sendmail)))
(pulseaudio-service-type config =>
(pulseaudio-configuration
(inherit config)
@@ -245,9 +239,7 @@ Seiko Epson Color Ink Jet Printers.")
(list
(plain-file
"noise-cancelling.pa"
- #"-
- load-module module-echo-cancel
- "#)))))
+ "load-module module-echo-cancel")))))
(guix-service-type config =>
(guix-configuration
(inherit config)
@@ -307,13 +299,13 @@ Seiko Epson Color Ink Jet Printers.")
(swap-devices
(list
(swap-space
- ;; # rm -f /swapfile
- ;; # truncate -s 0 /swapfile
- ;; # chattr +C /swapfile
- ;; # fallocate -l 8G /swapfile
- ;; # chmod 600 /swapfile
- ;; # mkswap /swapfile
- ;; # swapon /swapfile
+ ;; # rm -f /swapfile
+ ;; # truncate -s 0 /swapfile
+ ;; # chattr +C /swapfile
+ ;; # fallocate -l 8G /swapfile
+ ;; # chmod 600 /swapfile
+ ;; # mkswap /swapfile
+ ;; # swapon /swapfile
(target "/mnt/dois/swapfile")
(dependencies
(filter (file-system-mount-point-predicate "/")