Add fallback
This commit is contained in:
parent
b826e473b9
commit
259398507f
@ -87,5 +87,9 @@ write_files:
|
|||||||
}
|
}
|
||||||
owner: root:root
|
owner: root:root
|
||||||
permissions: '0644'
|
permissions: '0644'
|
||||||
|
- path: /mnt/data/kibana-elasticsearch-password
|
||||||
|
content: ""
|
||||||
|
owner: root:root
|
||||||
|
permissions: '0600'
|
||||||
runcmd:
|
runcmd:
|
||||||
- systemctl start nixos-rebuild.service
|
- systemctl start nixos-rebuild.service
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{ pkgs, lib, ... }:
|
{ pkgs, lib, ... }:
|
||||||
let
|
let
|
||||||
releaseVersion = app: (builtins.fromJSON (builtins.readFile "/mnt/data/guidelines.json")).${app};
|
releaseVersion = app: (if builtins.pathExists "/mnt/data/guidelines.json" then builtins.readFile (builtins.fromJSON ("/mnt/data/guidelines.json")).${app} else "latest");
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
|
Loading…
Reference in New Issue
Block a user