From fd5af3836e2598394067096420d9607f1b01763b Mon Sep 17 00:00:00 2001 From: Thanos Apollo Date: Sun, 10 Nov 2024 14:25:50 +0200 Subject: guix: system: Update networking services --- guix/system-create.scm | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'guix/system-create.scm') 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))))) -- cgit v1.2.3