diff options
author | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-09-28 11:59:39 +0200 |
---|---|---|
committer | Marek Paśnikowski <marek@marekpasnikowski.pl> | 2024-09-28 11:59:39 +0200 |
commit | 7fc195fadaf6cdbe31f717490babedd4765d691c (patch) | |
tree | c764c0fa61712c951098016dd3be3343ed1d09d7 /systems/ayase.scm | |
parent | 7ff41be0cd994c1b1b3aa5073afd54ad76bcd516 (diff) |
refactor(ayase): localize swap-devices
Diffstat (limited to 'systems/ayase.scm')
-rw-r--r-- | systems/ayase.scm | 17 |
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") |