summaryrefslogtreecommitdiff
path: root/guix/docker-image.scm
diff options
context:
space:
mode:
Diffstat (limited to 'guix/docker-image.scm')
-rw-r--r--guix/docker-image.scm35
1 files changed, 35 insertions, 0 deletions
diff --git a/guix/docker-image.scm b/guix/docker-image.scm
new file mode 100644
index 0000000..8af42d1
--- /dev/null
+++ b/guix/docker-image.scm
@@ -0,0 +1,35 @@
+;;; This file is based on gnu/system/examples/docker-image.tmpl from
+;;; the Guix source code.
+;;;
+;;; This file 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 file 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 file. If not, see <http://www.gnu.org/licenses/>.
+(use-modules (gnu))
+(operating-system
+ (host-name "guix")
+ (timezone "UTC")
+ (locale "en_US.utf8")
+ (packages %base-packages)
+
+ ;; This field is checked by guix system image, but it is then
+ ;; ignored because we use a docker image.
+ (bootloader (bootloader-configuration
+ (bootloader grub-bootloader)
+ (targets '())))
+ ;; This field is checked by guix system image, but it is then
+ ;; ignored because we use a docker image.
+ (file-systems (list (file-system
+ (device "")
+ (mount-point "/")
+ (type ""))))
+ (services
+ (list (service guix-service-type))))