hosts/kirsty: use current-module to get config directory

This commit is contained in:
Timotej Lazar 2022-08-12 12:16:47 +02:00
parent 38bec7d853
commit 6c2a4167f2
2 changed files with 4 additions and 12 deletions

View file

@ -15,14 +15,12 @@
#:use-module (gnu system setuid)
#:use-module (nongnu packages linux)
#:use-module (nongnu system linux-initrd)
#:use-module (packages linux)
#:use-module (util))
#:use-module (packages linux))
(define host "kirsty")
(define config (host-dir host))
(define host-dir (dirname (module-filename (current-module))))
(operating-system
(host-name host)
(host-name "kirsty")
(timezone "Europe/Ljubljana")
(locale-definitions
@ -31,7 +29,7 @@
%default-locale-definitions))
(locale "en_US.utf8")
(kernel (linux/config linux (string-append config "/kernel.config")))
(kernel (linux/config linux (string-append host-dir "/kernel.config")))
(kernel-arguments '("mitigations=auto"))
(firmware