diff options
Diffstat (limited to 'guix/jd/desktops/base.scm')
-rw-r--r-- | guix/jd/desktops/base.scm | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/guix/jd/desktops/base.scm b/guix/jd/desktops/base.scm new file mode 100644 index 0000000..7618257 --- /dev/null +++ b/guix/jd/desktops/base.scm | |||
@@ -0,0 +1,90 @@ | |||
1 | (define-module (jd desktops base) | ||
2 | #:use-module (gnu) | ||
3 | #:use-module (jd packages vpn) | ||
4 | #:use-module (nongnu packages linux) | ||
5 | #:use-module (nongnu system linux-initrd)) | ||
6 | |||
7 | (use-package-modules wm gnome) | ||
8 | (use-service-modules cups desktop networking ssh xorg | ||
9 | docker virtualization pm sound) | ||
10 | |||
11 | ;; Odin is a base operating system | ||
12 | (define-public odin | ||
13 | (operating-system | ||
14 | (kernel linux) | ||
15 | (initrd microcode-initrd) | ||
16 | (firmware (list linux-firmware)) | ||
17 | |||
18 | (locale "en_US.utf8") | ||
19 | (timezone "Europe/Warsaw") | ||
20 | (keyboard-layout (keyboard-layout "pl")) | ||
21 | (host-name "odin") | ||
22 | |||
23 | (users (cons* (user-account | ||
24 | (name "jakub") | ||
25 | (comment "Jakub Dlugosz") | ||
26 | (group "users") | ||
27 | (home-directory "/home/jakub") | ||
28 | (supplementary-groups '("wheel" "netdev" "audio" "video"))) | ||
29 | %base-user-accounts)) | ||
30 | |||
31 | (packages (append (specifications->packages '("emacs" | ||
32 | "emacs-exwm" | ||
33 | |||
34 | "brightnessctl" | ||
35 | |||
36 | "bluez" | ||
37 | "bluez-alsa" | ||
38 | |||
39 | "xf86-input-libinput" | ||
40 | |||
41 | "nss-certs")) | ||
42 | |||
43 | %base-packages)) | ||
44 | |||
45 | (services | ||
46 | (append (list | ||
47 | (service xfce-desktop-service-type) | ||
48 | (service openssh-service-type) | ||
49 | (set-xorg-configuration | ||
50 | (xorg-configuration (keyboard-layout keyboard-layout))) | ||
51 | |||
52 | (service network-manager-service-type | ||
53 | (network-manager-configuration | ||
54 | (vpn-plugins (list | ||
55 | network-manager-pptp)))) | ||
56 | |||
57 | (service bluetooth-service-type | ||
58 | (bluetooth-configuration | ||
59 | (auto-enable? #t))) | ||
60 | |||
61 | (service docker-service-type) | ||
62 | (service libvirt-service-type | ||
63 | (libvirt-configuration | ||
64 | (unix-sock-group "libvirt") | ||
65 | (tls-port "16555"))) | ||
66 | |||
67 | (service sane-service-type) | ||
68 | (service cups-service-type | ||
69 | (cups-configuration | ||
70 | (web-interface? #t))) | ||
71 | |||
72 | (service thermald-service-type) | ||
73 | (service tlp-service-type | ||
74 | (tlp-configuration | ||
75 | (cpu-boost-on-ac? #t) | ||
76 | (wifi-pwr-on-bat? #t)))) | ||
77 | |||
78 | (modify-services %desktop-services | ||
79 | (delete network-manager-service-type)))) | ||
80 | (bootloader (bootloader-configuration | ||
81 | (bootloader grub-bootloader) | ||
82 | (targets (list "/boot/efi")) | ||
83 | (keyboard-layout keyboard-layout))) | ||
84 | |||
85 | (file-systems (cons* (file-system | ||
86 | (mount-point "/tmp") | ||
87 | (device "none") | ||
88 | (type "tmpfs") | ||
89 | (check? #f)) | ||
90 | %base-file-systems)))) | ||