summaryrefslogtreecommitdiff
path: root/systems/akashi.scm
blob: 7048df8c4b06059098927179a4a8e9415b1a04b1 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
(define-module (systems akashi))

(define host-name*
  "akashi")

(define (file-systems)
  (use-modules (suweren system))
  (append %suweren-file-systems
	  (list ((@ (gnu system file-systems) file-system)
		 (type "ext4")
		 (mount-point "/")
		 (device "akashi-root")))))

(define (services)
  (use-modules (suweren system))
  (let* ((home-environments `((,uid1000-name ,(uid1000-home-environment host-name*))))

	 (guix-home ((@ (gnu services) service)
		     guix-home-service-type
		     home-environments)))
    (append %suweren-services
	    (list guix-home
		  ((@ (gnu services base) udev-rules-service)
		   'adb-udev
		   (@ (gnu packages android) android-udev-rules))))))

(define (users)
  (use-modules (users id1000))
  (list uid1000-account))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

(define (operating-system*)
  (use-modules (gnu packages linux)
	       (gnu services guix)
	       (machines thinkpad-x200)
	       (nongnu packages linux)
	       (suweren commons sudoers)
	       (suweren system)
	       (users id1000))
  (let* ((patter-placeholder #f)
	 (timezone* "Europe/Warsaw"))
    ((@ (gnu system) operating-system)
     (kernel linux-libre)
     (bootloader (bootloader-configuration* "pl"))
     (keyboard-layout "pl")
     (host-name host-name*)
     (file-systems (file-systems))
     (swap-devices (swap-devices* host-name*))
     (users (users))
     (timezone timezone*)
     (services (services))
     (sudoers-file %sudoers-specification*))))

(define-public operating-system*
  (operating-system*))

operating-system*