diff options
Diffstat (limited to 'guix/jd/desktops')
-rw-r--r-- | guix/jd/desktops/base.scm | 90 | ||||
-rw-r--r-- | guix/jd/desktops/mimir.scm | 30 | ||||
-rw-r--r-- | guix/jd/desktops/viking.scm | 29 |
3 files changed, 149 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)))) | ||
diff --git a/guix/jd/desktops/mimir.scm b/guix/jd/desktops/mimir.scm new file mode 100644 index 0000000..a635831 --- /dev/null +++ b/guix/jd/desktops/mimir.scm | |||
@@ -0,0 +1,30 @@ | |||
1 | (define-module (jd desktops mimir) | ||
2 | #:use-module (jd desktops base) | ||
3 | #:use-module (gnu)) | ||
4 | |||
5 | |||
6 | (operating-system | ||
7 | (inherit odin) | ||
8 | (host-name "mimir") | ||
9 | |||
10 | (bootloader (bootloader-configuration | ||
11 | (bootloader grub-efi-bootloader) | ||
12 | (targets (list "/boot/efi")))) | ||
13 | |||
14 | |||
15 | (swap-devices (list (swap-space | ||
16 | (target (uuid | ||
17 | "658793cb-d374-426e-bcd5-00d032b003a0"))))) | ||
18 | |||
19 | (file-systems (cons* (file-system | ||
20 | (mount-point "/boot/efi") | ||
21 | (device (uuid "64D8-134F" | ||
22 | 'fat32)) | ||
23 | (type "vfat")) | ||
24 | (file-system | ||
25 | (mount-point "/") | ||
26 | (device (uuid | ||
27 | "1f9304b0-5623-4248-ab66-534b5ac85876" | ||
28 | 'ext4)) | ||
29 | (type "ext4")) %base-file-systems))) | ||
30 | |||
diff --git a/guix/jd/desktops/viking.scm b/guix/jd/desktops/viking.scm new file mode 100644 index 0000000..80ddb88 --- /dev/null +++ b/guix/jd/desktops/viking.scm | |||
@@ -0,0 +1,29 @@ | |||
1 | (define-module (jd desktops mimir) | ||
2 | #:use-module (jd desktops base) | ||
3 | #:use-module (gnu)) | ||
4 | |||
5 | (operating-system | ||
6 | (inherit odin) | ||
7 | (host-name "mimir") | ||
8 | |||
9 | (bootloader (bootloader-configuration | ||
10 | (bootloader grub-efi-bootloader) | ||
11 | (targets (list "/boot/efi")))) | ||
12 | |||
13 | |||
14 | (swap-devices (list (swap-space | ||
15 | (target (uuid | ||
16 | "658793cb-d374-426e-bcd5-00d032b003a0"))))) | ||
17 | |||
18 | (file-systems (cons* (file-system | ||
19 | (mount-point "/boot/efi") | ||
20 | (device (uuid "64D8-134F" | ||
21 | 'fat32)) | ||
22 | (type "vfat")) | ||
23 | (file-system | ||
24 | (mount-point "/") | ||
25 | (device (uuid | ||
26 | "1f9304b0-5623-4248-ab66-534b5ac85876" | ||
27 | 'ext4)) | ||
28 | (type "ext4")) %base-file-systems))) | ||
29 | |||