hosts/kirsty: use current-module to get config directory
This commit is contained in:
parent
38bec7d853
commit
6c2a4167f2
2 changed files with 4 additions and 12 deletions
|
@ -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
|
||||
|
|
6
util.scm
6
util.scm
|
@ -1,6 +0,0 @@
|
|||
(define-module (util))
|
||||
|
||||
(define-public config-dir (or (dirname (current-filename)) (car %load-path)))
|
||||
|
||||
(define-public (host-dir host)
|
||||
(string-append config-dir "/hosts/" host))
|
Loading…
Add table
Add a link
Reference in a new issue