summaryrefslogtreecommitdiff
path: root/systems/ayase.scm
diff options
context:
space:
mode:
authorMarek Paśnikowski <marek@marekpasnikowski.pl>2024-09-28 11:33:25 +0200
committerMarek Paśnikowski <marek@marekpasnikowski.pl>2024-09-28 11:33:25 +0200
commit56034889f70a1838f670b892f1793ac7b16d79ca (patch)
treee1476db5382853bbb7d0b50945f54b0d780f76ba /systems/ayase.scm
parent731941c328d1b338606c51aa740772d9f0e3e74c (diff)
refactor(ayase): break out bootloader
Diffstat (limited to 'systems/ayase.scm')
-rw-r--r--systems/ayase.scm15
1 files changed, 9 insertions, 6 deletions
diff --git a/systems/ayase.scm b/systems/ayase.scm
index e46faa3..01730b5 100644
--- a/systems/ayase.scm
+++ b/systems/ayase.scm
@@ -81,6 +81,9 @@
(service guix-home-service-type
(home-environments)))
+(define keyboard-layout
+ (keyboard-layout "pl"))
+
(define root-partition
((@ (gnu system file-systems) file-system)
(mount-point "/")
@@ -115,6 +118,11 @@
;;;
+(define bootloader
+ (bootloader-configuration (bootloader grub-efi-bootloader)
+ (targets (list "/boot/efi"))
+ (keyboard-layout keyboard-layout)))
+
(define (file-systems)
(use-modules (gnu system file-systems))
(append %base-file-systems
@@ -151,12 +159,7 @@
;; #<operating-system>
(define-public operating-system*
- (let* ((bootloader-targets (list "/boot/efi"))
-
- (keyboard-layout (keyboard-layout "pl"))
- (bootloader (bootloader-configuration (bootloader grub-efi-bootloader)
- (targets bootloader-targets)
- (keyboard-layout keyboard-layout))))
+ (let* ((pattern-placeholder #f))
(operating-system (kernel linux)
(bootloader bootloader)
(keyboard-layout keyboard-layout)