Skip to content

Commit

Permalink
Add a test system for Mahogany
Browse files Browse the repository at this point in the history
This could allow developers to test Mahogany changes in a VM without
touching their current system.

This minimal system only includes mahogany and the necessary batteries
for Guix to run in a VM. The heavy lifting is done by %simple-os
from (gnu tests).
  • Loading branch information
KarlJoad authored and sdilts committed Nov 11, 2023
1 parent 8328c9c commit e14f094
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .guix/modules/test-system.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
(define-module (test-system)
#:use-module (guix gexp)
#:use-module (gnu)
#:use-module (gnu packages base)
#:use-module (gnu packages linux)
#:use-module (gnu system)
#:use-module (gnu tests)
#:use-module (gnu services desktop)
#:use-module (mahogany-package))

(operating-system
(inherit %simple-os)
(users (cons (user-account
(name "alice")
(comment "Bob's sister")
(group "users")
(supplementary-groups
'("wheel" "audio" "video"
;; seatd needs the user to be part of seat group
"seat")))
%base-user-accounts))
(packages
(list coreutils ; Things like ls
procps ; For ps
grep ; For grep
mahogany))
(services
(append
(list
(service seatd-service-type))
%base-services)))

0 comments on commit e14f094

Please sign in to comment.