@@ 15,7 15,7 @@
(gnu packages curl)
(gnu packages bash)
(gnu packages compression))
-(use-service-modules desktop sddm xorg base nix pm)
+(use-service-modules desktop sddm xorg base nix pm virtualization vpn)
(use-package-modules gnome package-management shells)
(operating-system
@@ 68,10 68,11 @@
;; Create user `bob' with `alice' as its initial password.
(users (cons (user-account
(name "ruther")
- (comment "My main account")
+ (comment "Rutherther")
(group "users")
(supplementary-groups '("wheel" "netdev"
- "audio" "video"))
+ "audio" "video"
+ "libvirt"))
(shell (file-append zsh "/bin/zsh")))
%base-user-accounts))
@@ 97,7 98,26 @@
(keyboard-layout keyboard-layout)))
(service bluetooth-service-type)
(service nix-service-type)
- (service power-profiles-daemon-service-type))
+ (service power-profiles-daemon-service-type)
+
+ (service libvirt-service-type)
+
+ (service qemu-binfmt-service-type
+ (qemu-binfmt-configuration
+ (platforms (lookup-qemu-platforms "arm" "aarch64")))))
+
+ (service wireguard-service-type
+ (wireguard-configuration
+ (private-key "/etc/wireguard/private.key")
+ (addresses '("192.168.32.25/32"))
+ (peers
+ (list
+ (wireguard-peer
+ (name "server")
+ (endpoint "78.46.201.50:51820")
+ (keep-alive 25)
+ (public-key "ZOVjmgUak67kLhNVgZwyb0bro3Yi4vCJbGArv+35IWQ=")
+ (allowed-ips '("192.168.32.0/24"))))))))
(modify-services
%desktop-services
(elogind-service-type config => (elogind-configuration
@@ 120,3 140,4 @@
;; Allow resolution of '.local' host names with mDNS.
(name-service-switch %mdns-host-lookup-nss))
+