summaryrefslogtreecommitdiff
path: root/deployment
diff options
context:
space:
mode:
Diffstat (limited to 'deployment')
-rw-r--r--deployment/channels.scm2
-rw-r--r--deployment/services/cuirass.scm11
-rw-r--r--deployment/specification.scm45
-rw-r--r--deployment/system.scm11
4 files changed, 62 insertions, 7 deletions
diff --git a/deployment/channels.scm b/deployment/channels.scm
index fe20a4d..ae4d9bb 100644
--- a/deployment/channels.scm
+++ b/deployment/channels.scm
@@ -37,7 +37,7 @@
(define test-channels
(list (default-guix-channel "test")
(deployment-channel "test")
- (mnt-reform-nonguix "personal")
+ ;; (mnt-reform-nonguix "personal")
(nonguix-channel "test")
(rde-channel "master")
(sovereign-channel "test")))
diff --git a/deployment/services/cuirass.scm b/deployment/services/cuirass.scm
index 886091d..55d2d4f 100644
--- a/deployment/services/cuirass.scm
+++ b/deployment/services/cuirass.scm
@@ -19,19 +19,18 @@
;;; If not, see <https://www.gnu.org/licenses/>.
(define-module (deployment services cuirass)
+ #:export (cuirass-rakan_configuration-record)
#:use-module (gnu services cuirass)
- #:use-module (guix gexp)
+ #:use-module ((deployment specification)
+ #:prefix deployment:specification:)
#:use-module ((gnu packages ci)
#:prefix gnu:packages:ci:)
#:use-module ((sovereign services cuirass)
- #:prefix sovereign:services:cuirass:)
- #:export (cuirass-rakan_configuration-record))
+ #:prefix sovereign:services:cuirass:))
(define cuirass-rakan_configuration-record
(cuirass-configuration
(inherit sovereign:services:cuirass:cuirass_configuration-record)
- (specifications #~(list (specification
- (name 'my-test-linux)
- (build '(packages "linux-libre")))))))
+ (specifications (append deployment:specification:cuirass-deployment-test_specification-record))))
;;; EOF
diff --git a/deployment/specification.scm b/deployment/specification.scm
new file mode 100644
index 0000000..45099e6
--- /dev/null
+++ b/deployment/specification.scm
@@ -0,0 +1,45 @@
+;;; SPDX-License-Identifier: GPL-3.0-or-later
+;;; SPDX-FileCopyrightText: 2026 Marek Paśnikowski <marek@marekpasnikowski.pl>
+
+;;; COPYRIGHT NOTICE
+;;;
+;;; Copyright 2026, Marek Paśnikowski <marek@marekpasnikowski.pl>
+
+;;; LICENSE NOTICE
+;;;
+;;; This library is free software: you can redistribute it and/or modify it under the terms of
+;;; the GNU General Public License as published by the Free Software Foundation,
+;;; either version 3 of the License, or (at your option) any later version.
+;;;
+;;; This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
+;;; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+;;; See the GNU General Public License for more details.
+;;;
+;;; You should have received a copy of the GNU General Public License along with this library.
+;;; If not, see <https://www.gnu.org/licenses/>.
+
+(define-module (deployment specification)
+ #:export (cuirass-deployment-test_specification-record)
+ #:use-module (guix gexp)
+ #:use-module ((deployment channels)
+ #:prefix deployment:channels:)
+ #:use-module ((deployment system)
+ #:prefix deployment:system:)
+ #:use-module ((guix channels)
+ #:prefix guix:channels:))
+
+(define cuirass-deployment-test_specification-record
+ #~(list (specification
+ (name 'deployment-channel-test)
+ (build '(custom (deployment system)))
+ (channels (list #$@(map guix:channels:channel->code
+ deployment:channels:test-channels)))
+ (build-outputs (list))
+ (notifications (list))
+ (period 0)
+ (priority 9)
+ (systems (list "x86_64-linux"))
+ (is-active? #t)
+ (properties (list)))))
+
+;;; EOF
diff --git a/deployment/system.scm b/deployment/system.scm
index 0b411da..8d93c36 100644
--- a/deployment/system.scm
+++ b/deployment/system.scm
@@ -28,11 +28,14 @@
rakan)
#:use-module (deployment system file-systems)
#:use-module (deployment services vpn)
+ #:use-module (gnu ci)
#:use-module (gnu services)
#:use-module (gnu services base)
#:use-module (gnu system file-systems)
#:use-module (gnu system shadow)
+ #:use-module (gnu system vm)
#:use-module (guix gexp)
+ #:use-module (guix store)
#:use-module (sovereign system file-systems)
#:use-module (sovereign systems)
#:use-module (users id1000)
@@ -249,3 +252,11 @@
(define mcdowell deployment:system:mcdowell:system)
(define rakan deployment:system:rakan:system)
+
+(define-public (cuirass-jobs store arguments)
+ (list (derivation->job "vm.rakan"
+ (run-with-store store
+ (system-qemu-image/shared-store-script rakan
+ #:graphic? #f)))))
+
+;;; EOF