summaryrefslogtreecommitdiff
path: root/guix
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-11-10 14:25:50 +0200
committerThanos Apollo <[email protected]>2024-11-10 14:25:50 +0200
commitfd5af3836e2598394067096420d9607f1b01763b (patch)
treeea5a06f55da2868f6b321fb8f3b12ca1eb5e43c9 /guix
parent379987902b80f0a1322faca5e76ae8ce6c0a2c43 (diff)
guix: system: Update networking services
Diffstat (limited to 'guix')
-rw-r--r--guix/system-create.scm27
1 files changed, 20 insertions, 7 deletions
diff --git a/guix/system-create.scm b/guix/system-create.scm
index 70f7570..dac64a0 100644
--- a/guix/system-create.scm
+++ b/guix/system-create.scm
@@ -26,7 +26,7 @@
'("sway" "swaylock" "swaylock-effects" "swaybg"
"waybar" "gnupg" "pinentry" "font-jetbrains-mono"
"docker" "docker-cli" "dbus" "xf86-input-libinput"
- "xf86-video-fbdev"))
+ "xf86-video-fbdev" "tailscale-bin"))
(define* (system-create #:key
(system-packages thanos/system-packages)
@@ -48,7 +48,7 @@
(initrd microcode-initrd)
(firmware (list linux-firmware))
- ;; The list of user accounts ('root' is implicit).
+
(users (cons* (user-account
(name "thanos")
(comment "Thanos Apollo")
@@ -57,13 +57,10 @@
(supplementary-groups '("wheel" "netdev" "audio" "video" "docker" "kvm")))
%base-user-accounts))
- ;; Packages installed system-wide.
(packages
(append (map specification->package system-packages)
%base-packages))
- ;; Below is the list of system services. To search for available
- ;; services, run 'guix system search KEYWORD' in a terminal.
(services
(append (list
(service docker-service-type)
@@ -79,8 +76,24 @@
(service tailscale-service-type)
(service wpa-supplicant-service-type) ;; Needed by NetworkManager
(service network-manager-service-type)
+ (service block-facebook-hosts-service-type)
+ (simple-service 'add-extra-hosts
+ hosts-service-type
+ (list (host "192.168.0.100" "zeus"
+ '())
+ (host "192.168.0.101" "uranus"
+ '())))
+ (service tailscale-service-type)
- (service transmission-daemon-service-type)
+ (service transmission-daemon-service-type
+ (transmission-daemon-configuration
+ ;; Accept requests from this and other hosts on the
+ ;; local network
+ (rpc-whitelist-enabled? #t)
+ (rpc-whitelist '("::1" "127.0.0.1" "192.168.*"))
+ (rpc-username "z3us")
+ ;; hashed password
+ (rpc-password "{eab35f5df5b1e2691acf11f49be1b1dcffa55a59FyE5eNd8")))
;; tty login
(service elogind-service-type)
@@ -149,7 +162,7 @@
(targets (list "/boot/efi"))
(keyboard-layout keyboard-layout)))
- ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
+ ;; Filesystem
(swap-devices (list (swap-space
(target (uuid swap-uuid)))))