system-configuration/systems/sybil.scm

sybil.scm

1
;;; Tyreunom's system administration and configuration tools.
2
;;;
3
;;; Copyright © 2019 Julien Lepiller <julien@lepiller.eu>
4
;;;
5
;;; This program is free software: you can redistribute it and/or modify
6
;;; it under the terms of the GNU General Public License as published by
7
;;; the Free Software Foundation, either version 3 of the License, or
8
;;; (at your option) any later version.
9
;;;
10
;;; This program is distributed in the hope that it will be useful,
11
;;; but WITHOUT ANY WARRANTY; without even the implied warranty of
12
;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
;;; GNU General Public License for more details.
14
;;;
15
;;; You should have received a copy of the GNU General Public License
16
;;; along with this program.  If not, see <http://www.gnu.org/licenses/>.
17
18
(use-modules (gnu))
19
(use-modules (gnu system))
20
(use-modules (gnu bootloader) (gnu bootloader grub))
21
(use-modules (gnu services virtualization))
22
(use-modules (config os))
23
24
(let ((system (tyreunom-desktop-os "sybil")))
25
  (operating-system
26
    (inherit system)
27
    (bootloader
28
      (bootloader-configuration
29
        (target "/boot/efi")
30
        (bootloader grub-efi-bootloader)))
31
    (file-systems
32
      (cons* (file-system
33
               (device (file-system-label "guix"))
34
               (mount-point "/")
35
               (type "ext4"))
36
             (file-system
37
               (device (uuid "88ED-35AA" 'fat))
38
               (mount-point "/boot/efi")
39
               (type "vfat"))
40
             %base-file-systems))
41
    (services desktop-services)))
42