summaryrefslogtreecommitdiff
path: root/tw/system/installer/nonfree.scm
blob: e481aed0d8eb3e779d9c2ffe741b3e3451b84728 (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
(define-module (tw system installer nonfree)
  #:use-module (gnu packages admin)
  #:use-module (gnu packages linux)
  #:use-module (gnu packages package-management)
  #:use-module (gnu services)
  #:use-module (gnu services ssh)
  #:use-module (gnu system)
  #:use-module ((guix gexp) #:select (local-file))
  #:use-module ((nongnu system install)
                #:select (installation-os-nonfree))
  #:use-module ((srfi srfi-26) #:select (cut)))

(operating-system
  (inherit installation-os-nonfree)
  (packages
   (cons* efibootmgr htop guix
          (operating-system-packages installation-os-nonfree)))
  (services
   (cons*
    ;; Add an SSH server to facilitate remote installs.
    (service openssh-service-type
      (openssh-configuration
       (port-number 22)
       (%auto-start? #t)
       (permit-root-login #t)
       ;; The root account is passwordless, so make sure
       ;; a password is set before allowing logins.
       (allow-empty-passwords? #f)
       (password-authentication? #f)
       (authorized-keys
        `(("root" ,(local-file "../files/timo.pub"))))))
    ;; Make sure to remove the SSH service from the base services,
    ;; so we can override it fully.
    (filter
     (compose not (cut eq? openssh-service-type <>) service-kind)
     ((@@ (gnu system install) %installation-services))))))