diff options
author | Ryan Lahfa <masterancpp@gmail.com> | 2023-07-08 13:58:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 13:58:20 +0200 |
commit | 49413e25e09cb35cde536087daebc542f3f34d72 (patch) | |
tree | b2f02215ac015fa8479d2440f02334ccc6801c1e /nixos/modules/virtualisation | |
parent | 67eec418ab1bb44ce222944caaf62aeda5efa145 (diff) | |
parent | 21e36654c8900860cddce3c68c2589fa7ba49c05 (diff) |
Merge pull request #241314 from jnsgruk/master
Diffstat (limited to 'nixos/modules/virtualisation')
-rw-r--r-- | nixos/modules/virtualisation/lxd.nix | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/lxd.nix b/nixos/modules/virtualisation/lxd.nix index 738382ef41a5f..22e336c895f95 100644 --- a/nixos/modules/virtualisation/lxd.nix +++ b/nixos/modules/virtualisation/lxd.nix @@ -85,6 +85,14 @@ in { considered failed and systemd will attempt to restart it. ''; }; + + ui = { + enable = lib.mkEnableOption (lib.mdDoc '' + Enables the (experimental) LXD UI. + ''); + + package = mkPackageOption pkgs.lxd "ui" { }; + }; }; }; @@ -143,6 +151,10 @@ in { path = [ pkgs.util-linux ] ++ optional cfg.zfsSupport config.boot.zfs.package; + environment = mkIf (cfg.ui.enable) { + "LXD_UI" = cfg.ui.package; + }; + serviceConfig = { ExecStart = "@${cfg.package}/bin/lxd lxd --group lxd"; ExecStartPost = "${cfg.package}/bin/lxd waitready --timeout=${cfg.startTimeout}"; |