diff options
author | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-03 14:12:58 +0200 |
---|---|---|
committer | jdlugosz963 <jdlugosz963@gmail.com> | 2023-07-03 14:37:09 +0200 |
commit | 49e0dc10749a34f66a0935c1ded8f6fa6c4b346c (patch) | |
tree | 8f04a20602177a9c24d980442e850c43aeca5f8c /guix/jd/desktops/base.scm | |
parent | 47a2b2c8caff2a59ab6d67ffae837811fc24ccf5 (diff) | |
download | dotfiles-49e0dc10749a34f66a0935c1ded8f6fa6c4b346c.tar.gz dotfiles-49e0dc10749a34f66a0935c1ded8f6fa6c4b346c.zip |
Add guix manifests and channels.
Diffstat (limited to 'guix/jd/desktops/base.scm')
-rw-r--r-- | guix/jd/desktops/base.scm | 136 |
1 files changed, 77 insertions, 59 deletions
diff --git a/guix/jd/desktops/base.scm b/guix/jd/desktops/base.scm index 7618257..b9fc286 100644 --- a/guix/jd/desktops/base.scm +++ b/guix/jd/desktops/base.scm | |||
@@ -8,75 +8,86 @@ | |||
8 | (use-service-modules cups desktop networking ssh xorg | 8 | (use-service-modules cups desktop networking ssh xorg |
9 | docker virtualization pm sound) | 9 | docker virtualization pm sound) |
10 | 10 | ||
11 | ;; Odin is a base operating system | 11 | (define-public %jd-base-user-accounts |
12 | (define-public odin | 12 | (cons* (user-account |
13 | (operating-system | 13 | (name "jakub") |
14 | (kernel linux) | 14 | (comment "Jakub Dlugosz") |
15 | (initrd microcode-initrd) | 15 | (group "users") |
16 | (firmware (list linux-firmware)) | 16 | (home-directory "/home/jakub") |
17 | (supplementary-groups '("wheel" | ||
18 | "netdev" | ||
19 | "audio" | ||
20 | "docker" | ||
21 | "kvm" | ||
22 | "libvirt" | ||
23 | "video"))) | ||
24 | %base-user-accounts)) | ||
17 | 25 | ||
18 | (locale "en_US.utf8") | 26 | (define-public %jd-base-packages |
19 | (timezone "Europe/Warsaw") | 27 | (append |
20 | (keyboard-layout (keyboard-layout "pl")) | 28 | (specifications->packages '("emacs" |
21 | (host-name "odin") | 29 | "emacs-exwm" |
22 | 30 | "stow" | |
23 | (users (cons* (user-account | 31 | "bluez" |
24 | (name "jakub") | 32 | "bluez-alsa" |
25 | (comment "Jakub Dlugosz") | 33 | "exfat-utils" |
26 | (group "users") | 34 | "git" |
27 | (home-directory "/home/jakub") | 35 | "xf86-input-libinput" |
28 | (supplementary-groups '("wheel" "netdev" "audio" "video"))) | 36 | "intel-vaapi-driver" |
29 | %base-user-accounts)) | 37 | "libva-utils" |
38 | "nss-certs")) | ||
39 | %base-packages)) | ||
30 | 40 | ||
31 | (packages (append (specifications->packages '("emacs" | 41 | (define-public %jd-base-services |
32 | "emacs-exwm" | 42 | (append (list |
33 | 43 | (service openssh-service-type) | |
34 | "brightnessctl" | ||
35 | 44 | ||
36 | "bluez" | 45 | (service network-manager-service-type |
37 | "bluez-alsa" | 46 | (network-manager-configuration |
47 | (vpn-plugins (list | ||
48 | network-manager-pptp)))) | ||
49 | |||
50 | (service bluetooth-service-type | ||
51 | (bluetooth-configuration | ||
52 | (auto-enable? #t))) | ||
38 | 53 | ||
39 | "xf86-input-libinput" | 54 | (service docker-service-type) |
40 | 55 | (service libvirt-service-type | |
41 | "nss-certs")) | 56 | (libvirt-configuration |
57 | (unix-sock-group "libvirt") | ||
58 | (tls-port "16555"))) | ||
42 | 59 | ||
43 | %base-packages)) | 60 | (service sane-service-type) |
44 | 61 | (service cups-service-type | |
45 | (services | 62 | (cups-configuration |
46 | (append (list | 63 | (web-interface? #t))) |
47 | (service xfce-desktop-service-type) | ||
48 | (service openssh-service-type) | ||
49 | (set-xorg-configuration | ||
50 | (xorg-configuration (keyboard-layout keyboard-layout))) | ||
51 | 64 | ||
52 | (service network-manager-service-type | 65 | (service thermald-service-type) |
53 | (network-manager-configuration | 66 | (service tlp-service-type |
54 | (vpn-plugins (list | 67 | (tlp-configuration |
55 | network-manager-pptp)))) | 68 | (cpu-boost-on-ac? #t) |
56 | 69 | (wifi-pwr-on-bat? #t))) | |
57 | (service bluetooth-service-type | ||
58 | (bluetooth-configuration | ||
59 | (auto-enable? #t))) | ||
60 | 70 | ||
61 | (service docker-service-type) | 71 | (service slim-service-type (slim-configuration |
62 | (service libvirt-service-type | 72 | (display ":0") |
63 | (libvirt-configuration | 73 | (vt "vt7")))) |
64 | (unix-sock-group "libvirt") | ||
65 | (tls-port "16555"))) | ||
66 | 74 | ||
67 | (service sane-service-type) | 75 | (modify-services %desktop-services |
68 | (service cups-service-type | 76 | (delete network-manager-service-type) |
69 | (cups-configuration | 77 | (delete gdm-service-type)))) |
70 | (web-interface? #t))) | ||
71 | 78 | ||
72 | (service thermald-service-type) | 79 | ;; Odin is a base operating system |
73 | (service tlp-service-type | 80 | (define-public odin-free |
74 | (tlp-configuration | 81 | (operating-system |
75 | (cpu-boost-on-ac? #t) | 82 | (locale "en_US.utf8") |
76 | (wifi-pwr-on-bat? #t)))) | 83 | (timezone "Europe/Warsaw") |
84 | (keyboard-layout (keyboard-layout "pl")) | ||
85 | (host-name "odin") | ||
86 | |||
87 | (users %jd-base-user-accounts) | ||
88 | (packages %jd-base-packages) | ||
89 | (services %jd-base-services) | ||
77 | 90 | ||
78 | (modify-services %desktop-services | ||
79 | (delete network-manager-service-type)))) | ||
80 | (bootloader (bootloader-configuration | 91 | (bootloader (bootloader-configuration |
81 | (bootloader grub-bootloader) | 92 | (bootloader grub-bootloader) |
82 | (targets (list "/boot/efi")) | 93 | (targets (list "/boot/efi")) |
@@ -88,3 +99,10 @@ | |||
88 | (type "tmpfs") | 99 | (type "tmpfs") |
89 | (check? #f)) | 100 | (check? #f)) |
90 | %base-file-systems)))) | 101 | %base-file-systems)))) |
102 | |||
103 | (define-public odin-non-free | ||
104 | (operating-system | ||
105 | (inherit odin-free) | ||
106 | (kernel linux) | ||
107 | (initrd microcode-initrd) | ||
108 | (firmware (list linux-firmware)))) | ||