summaryrefslogtreecommitdiffstats
path: root/guix/jd/desktops
diff options
context:
space:
mode:
authorjdlugosz963 <jdlugosz963@gmail.com>2023-07-03 14:12:58 +0200
committerjdlugosz963 <jdlugosz963@gmail.com>2023-07-03 14:37:09 +0200
commit49e0dc10749a34f66a0935c1ded8f6fa6c4b346c (patch)
tree8f04a20602177a9c24d980442e850c43aeca5f8c /guix/jd/desktops
parent47a2b2c8caff2a59ab6d67ffae837811fc24ccf5 (diff)
downloaddotfiles-49e0dc10749a34f66a0935c1ded8f6fa6c4b346c.tar.gz
dotfiles-49e0dc10749a34f66a0935c1ded8f6fa6c4b346c.zip
Add guix manifests and channels.
Diffstat (limited to 'guix/jd/desktops')
-rw-r--r--guix/jd/desktops/base.scm136
-rw-r--r--guix/jd/desktops/mimir.scm9
-rw-r--r--guix/jd/desktops/viking.scm29
3 files changed, 84 insertions, 90 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))))
diff --git a/guix/jd/desktops/mimir.scm b/guix/jd/desktops/mimir.scm
index a635831..185df08 100644
--- a/guix/jd/desktops/mimir.scm
+++ b/guix/jd/desktops/mimir.scm
@@ -1,11 +1,16 @@
1(define-module (jd desktops mimir) 1(define-module (jd desktops mimir)
2 #:use-module (jd desktops base) 2 #:use-module (jd desktops base)
3 #:use-module (gnu)) 3 #:use-module (gnu)
4 #:use-module (gnu services desktop))
4 5
5 6
6(operating-system 7(operating-system
7 (inherit odin) 8 (inherit odin-non-free)
8 (host-name "mimir") 9 (host-name "mimir")
10
11 (services (cons
12 (service xfce-desktop-service-type)
13 %jd-base-services))
9 14
10 (bootloader (bootloader-configuration 15 (bootloader (bootloader-configuration
11 (bootloader grub-efi-bootloader) 16 (bootloader grub-efi-bootloader)
diff --git a/guix/jd/desktops/viking.scm b/guix/jd/desktops/viking.scm
deleted file mode 100644
index 80ddb88..0000000
--- a/guix/jd/desktops/viking.scm
+++ /dev/null
@@ -1,29 +0,0 @@
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