summaryrefslogtreecommitdiff
path: root/systems/ayase.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-09-28 11:59:39 +0200
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-09-28 11:59:39 +0200
commit7fc195fadaf6cdbe31f717490babedd4765d691c (patch)
treec764c0fa61712c951098016dd3be3343ed1d09d7 /systems/ayase.scm
parent7ff41be0cd994c1b1b3aa5073afd54ad76bcd516 (diff)
refactor(ayase): localize swap-devices
Diffstat (limited to 'systems/ayase.scm')
-rw-r--r--systems/ayase.scm17
1 files changed, 7 insertions, 10 deletions
diff --git a/systems/ayase.scm b/systems/ayase.scm
index 053d0fa..d00b5b8 100644
--- a/systems/ayase.scm
+++ b/systems/ayase.scm
@@ -90,12 +90,6 @@
(device root-filesystem-uuid)
(type "ext4")))
-(define swap-1
- (swap-space (target (swap-label "-1"))))
-
-(define swap-2
- (swap-space (target (swap-label "-2"))))
-
(define (system-services)
(use-modules (gnu packages ibus))
(list (service libvirt-service-type)
@@ -137,9 +131,11 @@
(list home-services)
(system-services)))
-(define swap-devices
- (list swap-1
- swap-2))
+(define swap-device-1
+ (swap-space (target (swap-label "-1"))))
+
+(define swap-device-2
+ (swap-space (target (swap-label "-2"))))
(define (users)
(use-modules (users id1000))
@@ -161,7 +157,8 @@
(firmware (list linux-firmware))
(host-name host-name)
(file-systems (file-systems))
- (swap-devices swap-devices)
+ (swap-devices (list swap-device-1
+ swap-device-2))
(users (users))
(timezone "Europe/Warsaw")
(locale "pl_PL.utf8")