Compare commits

...

7 Commits

Author SHA1 Message Date
Luis Guilherme Coelho e7af051da4
radio: files: Add senpai 2024-11-19 11:56:35 -03:00
Luis Guilherme Coelho 0e631d55f7
home-environments: radio: Add !pass abbreviation for obtaining passwords more quickly 2024-11-19 11:53:17 -03:00
Luis Guilherme Coelho 102c542180
buer: file-systems: Remove /etc/wireguard as persistent directory, since it's currently unused 2024-11-19 11:52:20 -03:00
Luis Guilherme Coelho 6167d59e70
operating-systems: buer: Add /swap/swapfile for eventual long hibernations 2024-11-19 11:51:37 -03:00
Luis Guilherme Coelho f96a4a3808
operating-systems: buer: Remove extra slash when symlinking persistent files 2024-11-19 11:50:20 -03:00
Luis Guilherme Coelho 2a12b1f930
operating-systems: buer: Remove unecessary module import 2024-11-19 11:49:30 -03:00
Luis Guilherme Coelho 114595e476
operating-systems: buer: Remove avahi 2024-11-17 20:07:51 -03:00
6 changed files with 51 additions and 12 deletions

View File

@ -231,6 +231,9 @@
(!network . ,(format #f "doas herd restart networking ~ (!network . ,(format #f "doas herd restart networking ~
&& doas herd restart wpa-supplicant")) && doas herd restart wpa-supplicant"))
#|Pass|#
(!pass . "pass show % | wl-copy")
#|Processes|# #|Processes|#
(tf . "setsid -f % >/dev/null 2>&1 & disown") (tf . "setsid -f % >/dev/null 2>&1 & disown")

View File

@ -0,0 +1,10 @@
#!/bin/sh
escape() {
printf "%s" "$1" | sed 's#\#\\#g'
}
notify-send --urgency=normal --expire-time=0 --category=Mail "[$BUFFER] $SENDER" "$(escape "$MESSAGE")"
mpv ~/.guix-home/profile/share/sounds/freedesktop/stereo/complete.oga

View File

@ -0,0 +1,3 @@
#!/bin/sh
read -p 'senpai password: '

View File

@ -0,0 +1,13 @@
address chat.sr.ht
nickname anemofilia
password-cmd pass show senpai/password
highlight anemofilia: anemofilia, radix saayix cargo2guix misako
channel "#coreboot" "#fossandcrafts" "#fsf" "#gnu" "#guix" "#guile" "#hurd" "#ibmthinkpad" "#kakoune" "#lisp" "#lobsters" "#scheme" "#spritely" "#savannah" "#whereiseveryone"
on-highlight-path /home/radio/.config/senpai/scripts/on-highlight.sh
tls true
typings false
mouse true
pane-widths {
nicknames 20
channels 20
}

View File

@ -23,7 +23,6 @@
#|GNU services|# #|GNU services|#
#||# #:use-module (gnu services) #||# #:use-module (gnu services)
#|A|# #:use-module (gnu services admin) #|A|# #:use-module (gnu services admin)
#:use-module (gnu services avahi)
#|B|# #:use-module ((gnu services base) #:hide (greetd-service-type)) #|B|# #:use-module ((gnu services base) #:hide (greetd-service-type))
#|D|# #:use-module (gnu services dbus) #|D|# #:use-module (gnu services dbus)
#:use-module (gnu services desktop) #:use-module (gnu services desktop)
@ -122,7 +121,8 @@
(kernel linux-libre-6.11) (kernel linux-libre-6.11)
(kernel-arguments (kernel-arguments
(cons* "modprobe.blacklist=usbmouse,usbkbd,pcspkr" (cons* "resume=/swap/swapfile"
"modprobe.blacklist=usbmouse,usbkbd,pcspkr"
"thinkpad_acpi.fan_control=1" "thinkpad_acpi.fan_control=1"
(filter (negate ((on disjoin (filter (negate ((on disjoin
(partial partial string-prefix?)) (partial partial string-prefix?))
@ -132,7 +132,12 @@
(file-systems (file-systems
(append file-system:volumes (append file-system:volumes
file-system:persistent-directories)) file-system:persistent-directories))
(swap-devices
(list (swap-space
(target "/swap/swapfile")
(dependencies
(filter (file-system-mount-point-predicate "/swap")
file-systems)))))
(users (users
(cons* user:radio (cons* user:radio
user:root user:root
@ -204,16 +209,10 @@
#|IPC services|# #|IPC services|#
(service dbus-root-service-type) (service dbus-root-service-type)
#|Avahi service|#
(service avahi-service-type
(avahi-configuration
(wide-area? #t)))
#|Guix services|# #|Guix services|#
(service guix-service-type (service guix-service-type
(guix-configuration (guix-configuration
(build-accounts 16) (build-accounts 16)
(discover? #t)
(authorized-keys (authorized-keys
(cons* substitute-key:genenetwork.pub (cons* substitute-key:genenetwork.pub
substitute-key:inria.pub substitute-key:inria.pub
@ -284,6 +283,7 @@
#|Memory management services|# #|Memory management services|#
(service zram-device-service-type (service zram-device-service-type
(zram-device-configuration (zram-device-configuration
(priority 100)
(size (* 2 (ram-total))) (size (* 2 (ram-total)))
(compression-algorithm 'lz4))) (compression-algorithm 'lz4)))
@ -303,7 +303,7 @@
(simple-service 'persistent-files (simple-service 'persistent-files
special-files-service-type special-files-service-type
(map (juxt identity (map (juxt identity
(partial string-append "/gnu/persist/")) (partial string-append "/gnu/persist"))
file-system:persistent-files)) file-system:persistent-files))
#|Sysctl services|# #|Sysctl services|#

View File

@ -112,6 +112,17 @@
(needed-for-boot? #t) (needed-for-boot? #t)
(options "mode=0755")) (options "mode=0755"))
#|swap|#
(file-system
(device partition:guix)
(type "btrfs")
(mount-point "/swap")
(check? #f)
(needed-for-boot? #t)
(options (format #f "subvol=@swap,~
discard=async,~
ssd")))
#|home|# #|home|#
(file-system (file-system
(device partition:guix) (device partition:guix)
@ -139,8 +150,7 @@
(check? #f) (check? #f)
(flags '(no-atime bind-mount)))) (flags '(no-atime bind-mount))))
`("/etc/guix" `("/etc/guix"
"/etc/ssh" "/etc/ssh")))
"/etc/wireguard")))
(define persistent-files (define persistent-files
(list "/etc/machine-id" (list "/etc/machine-id"