programs: bonsai: fix eval error
This commit is contained in:
parent
5838603953
commit
eecb98e2ee
|
@ -1,7 +1,7 @@
|
||||||
# bonsai docs: <https://sr.ht/~stacyharper/bonsai/>
|
# bonsai docs: <https://sr.ht/~stacyharper/bonsai/>
|
||||||
{ config, lib, pkgs, ... }:
|
{ config, lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
cfg = config.sane.programs.bonsai.config;
|
cfg = config.sane.programs.bonsai;
|
||||||
|
|
||||||
delayType = with lib; types.submodule {
|
delayType = with lib; types.submodule {
|
||||||
options = {
|
options = {
|
||||||
|
@ -101,7 +101,7 @@ in
|
||||||
};
|
};
|
||||||
configFile = mkOption {
|
configFile = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = pkgs.writeText "bonsai_tree.json" (builtins.toJSON cfg.transitions);
|
default = pkgs.writeText "bonsai_tree.json" (builtins.toJSON cfg.config.transitions);
|
||||||
description = ''
|
description = ''
|
||||||
configuration file to pass to bonsai.
|
configuration file to pass to bonsai.
|
||||||
usually auto-generated from the sibling options; exposed mainly for debugging or convenience.
|
usually auto-generated from the sibling options; exposed mainly for debugging or convenience.
|
||||||
|
@ -118,7 +118,7 @@ in
|
||||||
|
|
||||||
script = ''
|
script = ''
|
||||||
${pkgs.coreutils}/bin/rm -f $XDG_RUNTIME_DIR/bonsai
|
${pkgs.coreutils}/bin/rm -f $XDG_RUNTIME_DIR/bonsai
|
||||||
exec ${cfg.package}/bin/bonsaid -t ${cfg.configFile}
|
exec ${cfg.package}/bin/bonsaid -t ${cfg.config.configFile}
|
||||||
'';
|
'';
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user