Skip to content

Commit 52dce42

Browse files
committed
Translate existing jsonnet to template
1 parent 0e99332 commit 52dce42

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

data/yam/agama/auto/lib/base.libsonnet

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22
bootloader: {
33
stopOnBootMenu: true
44
},
5+
localization: {
6+
language: 'cs_CZ.UTF-8',
7+
keyboard: 'cz',
8+
},
59
user: {
610
fullName: 'Bernhard M. Wiedemann',
711
password: '$6$vYbbuJ9WMriFxGHY$gQ7shLw9ZBsRcPgo6/8KmfDvQ/lCqxW8/WnMoLCoWGdHO6Touush1nhegYfdBbXRpsQuy/FTZZeg7gQL50IbA/',

data/yam/agama/auto/template.libsonnet

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ local storage_lib = import 'lib/storage.libsonnet';
77
local security_lib = import 'lib/security.libsonnet';
88

99
function(bootloader=false,
10+
localization='',
1011
packages='',
1112
patterns='',
1213
product='',
@@ -21,6 +22,7 @@ function(bootloader=false,
2122
storage='',
2223
user=true) {
2324
[if bootloader == true then 'bootloader']: base_lib['bootloader'],
25+
[if localization == true then 'localization']: base_lib['localization'],
2426
[if patterns != '' || packages != '' then 'software']: std.prune({
2527
patterns: if patterns != '' then std.split(patterns, ','),
2628
packages: if packages != '' then std.split(packages, ','),

0 commit comments

Comments
 (0)