summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/org.freedesktop.machine1.host-shell.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/org.freedesktop.machine1.host-shell.nix b/modules/org.freedesktop.machine1.host-shell.nix
index b71799d..73825a5 100644
--- a/modules/org.freedesktop.machine1.host-shell.nix
+++ b/modules/org.freedesktop.machine1.host-shell.nix
@@ -17,7 +17,7 @@
enable = cfg.access != {};
in lib.optionalString enable /* js */ ''
polkit.addRule(function () {
- var access = ${builtins.toJSON cfg.access};
+ const access = ${builtins.toJSON cfg.access};
return function(action, subject) {
if (action.id === "org.freedesktop.machine1.host-shell"
&& (access[subject.user]||{})[action.lookup("user")])