diff options
| author | Vineet Kumar <git@vineetk.net> | 2026-05-05 13:49:05 -0400 |
|---|---|---|
| committer | Vineet Kumar <git@vineetk.net> | 2026-05-07 21:17:07 -0400 |
| commit | b422b223f5c294962e3898986946900839cb0607 (patch) | |
| tree | ea6e14f5bed80026c9bb71979620b3d1605a566b /epistemia | |
| parent | e07c33fe14d150ed09ad7cc77355fe1750ba5618 (diff) | |
saklas: switch to linux-libre from linux
Diffstat (limited to 'epistemia')
| -rw-r--r-- | epistemia/bootloader.scm | 18 | ||||
| -rw-r--r-- | epistemia/services/zfs.scm | 16 |
2 files changed, 11 insertions, 23 deletions
diff --git a/epistemia/bootloader.scm b/epistemia/bootloader.scm index 413b0d7..dd14fdf 100644 --- a/epistemia/bootloader.scm +++ b/epistemia/bootloader.scm | |||
| @@ -21,21 +21,3 @@ | |||
| 21 | "set root=(hd0,gpt2)") | 21 | "set root=(hd0,gpt2)") |
| 22 | ((" /store/") | 22 | ((" /store/") |
| 23 | " /gnu/@/store/"))))))) | 23 | " /gnu/@/store/"))))))) |
| 24 | |||
| 25 | ;; TODO combine into previous with an argument? | ||
| 26 | (define-public grub-zfs-bios | ||
| 27 | (bootloader | ||
| 28 | (inherit grub-bootloader) | ||
| 29 | (name 'grub-zfs) | ||
| 30 | (installer | ||
| 31 | #~(lambda (bootloader targets mount-point) | ||
| 32 | (use-modules (guix build utils)) | ||
| 33 | (let ((standard-installer #$(bootloader-installer grub-bootloader))) | ||
| 34 | (standard-installer bootloader targets mount-point)) | ||
| 35 | (let ((grub-cfg (string-append mount-point "/boot/grub/grub.cfg"))) | ||
| 36 | (chmod grub-cfg #o644) | ||
| 37 | (substitute* grub-cfg | ||
| 38 | (("search --label --set [^ ]+") | ||
| 39 | "set root=(hd0,gpt2)") | ||
| 40 | ((" /store/") | ||
| 41 | " /gnu/@/store/"))))))) | ||
diff --git a/epistemia/services/zfs.scm b/epistemia/services/zfs.scm index 8cbc441..16f5d37 100644 --- a/epistemia/services/zfs.scm +++ b/epistemia/services/zfs.scm | |||
| @@ -1,13 +1,13 @@ | |||
| 1 | (define-module (epistemia services zfs) | 1 | (define-module (epistemia services zfs) |
| 2 | #:use-module (gnu services shepherd) | 2 | #:use-module (gnu services shepherd) |
| 3 | #:use-module (guix gexp) | 3 | #:use-module (gnu packages file-systems) |
| 4 | #:use-module (epistemia packages zfs) | 4 | #:use-module (epistemia packages zfs) |
| 5 | #:export (zfs-shepherd-services)) | 5 | #:use-module (guix gexp)) |
| 6 | 6 | ||
| 7 | ;; from raid5atemyhomework's valiant efforts | 7 | ;; from raid5atemyhomework's valiant efforts |
| 8 | (define zfs-shepherd-services | 8 | (define* (make-zfs-shepherd-services zfs-package) |
| 9 | (let ((zpool (file-append zfs-linux "/sbin/zpool")) | 9 | (let ((zpool (file-append zfs-package "/sbin/zpool")) |
| 10 | (zfs (file-append zfs-linux "/sbin/zfs")) | 10 | (zfs (file-append zfs-package "/sbin/zfs")) |
| 11 | (scheme-modules `((srfi srfi-1) | 11 | (scheme-modules `((srfi srfi-1) |
| 12 | (srfi srfi-34) | 12 | (srfi srfi-34) |
| 13 | (srfi srfi-35) | 13 | (srfi srfi-35) |
| @@ -38,3 +38,9 @@ | |||
| 38 | (invoke/quiet #$zfs "unmount" "-a" "-f") | 38 | (invoke/quiet #$zfs "unmount" "-a" "-f") |
| 39 | #f)))) | 39 | #f)))) |
| 40 | (list zfs-scan zfs-automount))) | 40 | (list zfs-scan zfs-automount))) |
| 41 | |||
| 42 | (define-public zfs-shepherd-services | ||
| 43 | (make-zfs-shepherd-services zfs)) | ||
| 44 | |||
| 45 | (define-public zfs-linux-shepherd-services | ||
| 46 | (make-zfs-shepherd-services zfs-linux)) | ||
