WIP guix recepti in viri

master
Jurij Podgoršek 2023-09-25 22:22:30 +02:00
commit cc65a50f65
5 changed files with 49 additions and 0 deletions

8
README.org 100644
View File

@ -0,0 +1,8 @@
#+TITLE: Container za emacs, CRDT, orgmode in web server
* Viri
- https://guix.gnu.org/cookbook/en/html_node/Guix-Containers.html
- https://guix.gnu.org/cookbook/en/html_node/A-Database-Container.html
- https://guix.gnu.org/cookbook/en/html_node/Container-Networking.html
- https://issues.genenetwork.org/topics/guix-system-containers-and-how-we-use-them
- https://guix.gnu.org/manual/en/html_node/Web-Services.html

View File

@ -0,0 +1,2 @@
pot="test"
guix system container --network --share=$pot system.scm

3
guix-shell.sh 100755
View File

@ -0,0 +1,3 @@
#!/bin/bash
guix shell --container --network --manifest=manifest.scm -- emacs

13
manifest.scm 100644
View File

@ -0,0 +1,13 @@
(specifications->manifest
(list ;; Base packages
"nginx"
"bash-minimal"
"glibc-locales"
"nss-certs"
;; CMDline
"coreutils"
;; Emacs!
"emacs"
"emacs-crdt"))

23
system.scm 100644
View File

@ -0,0 +1,23 @@
(use-modules (gnu))
(use-package-modules web emacs)
;(use-service-modules ...)
(operating-system
(host-name "emacs-crdt-blog")
(timezone "Europe/Ljubljana")
(locale "sl_SI.UTF-8")
(file-systems (cons (file-system
(device (file-system-label "r00t"))
(mount-point "/")
(type "ext4"))
%base-file-systems))
(bootloader (bootloader-configuration
(bootloader grub-bootloader)
(targets '("/dev/sdX"))))
(packages (append (list (specification->package "nginx")
(specification->package "emacs")
(specification->package "emacs-crdt"))
%base-packages))
(services %base-services))