aboutsummaryrefslogtreecommitdiff
path: root/guix/system.scm
blob: 3e51b1f501e1c0fd738dd3b4f220e19300288693 (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
(use-modules (gnu) (gnu system nss))
(use-service-modules desktop)
(use-package-modules base wm certs text-editors version-control shells admin file xorg video gnupg ssh linux)

(operating-system
  (host-name "fishbowl")
  (timezone "Europe/Berlin")
  (locale "en_US.UTF-8")

  (bootloader (grub-configuration (device "/dev/sda")))

  (mapped-devices
   (list (mapped-device
          (source (uuid "47c46f56-bdf9-4982-a00e-4aaf8f3b969f"))
          (target "the-root-device")
          (type luks-device-mapping))))

  (file-systems (cons* (file-system
                        (device "root")
                        (title 'label)
                        (mount-point "/")
                        (type "ext4")
                        (dependencies mapped-devices))
                      %base-file-systems))
  (swap-devices '("/swap"))

  (users (cons (user-account
                (name "fischerling")
                (comment "")
                (group "users")
                (supplementary-groups '("wheel" "netdev"
                                        "audio" "video"))
                (home-directory "/home/fischerling"))
                ;;(shell "fish"))
               %base-user-accounts))

  (packages (cons* i3-wm                   ;window managers
                   git
                   fish
                   wpa-supplicant
                   acpi
                   file
                   vis
                   htop
                   gnupg
                   openssh
                   xorg-server
                   xinit
                   mpv
                   youtube-dl
                   nss-certs               ;for HTTPS access
                   %base-packages))

  (services (cons* (console-keymap-service "de")
                   %base-services))

  ;; Allow resolution of '.local' host names with mDNS.
  (name-service-switch %mdns-host-lookup-nss))