summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2024-01-28 14:44:49 +0100
committertv <tv@krebsco.de>2024-01-28 14:44:49 +0100
commitc0494dbf4ee2db7f5474ac2a25949cd7456c0af1 (patch)
tree02f36a390c88dfaa7c5368243e56980b949d184b
parent179b13567f0fa2f536ebbf13906b46033ac42a04 (diff)
org.freedesktop.machine1.host-shell: var -> const
-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")])