diff options
author | tv <tv@krebsco.de> | 2024-01-28 14:44:49 +0100 |
---|---|---|
committer | tv <tv@krebsco.de> | 2024-01-28 14:44:49 +0100 |
commit | c0494dbf4ee2db7f5474ac2a25949cd7456c0af1 (patch) | |
tree | 02f36a390c88dfaa7c5368243e56980b949d184b | |
parent | 179b13567f0fa2f536ebbf13906b46033ac42a04 (diff) |
org.freedesktop.machine1.host-shell: var -> const
-rw-r--r-- | modules/org.freedesktop.machine1.host-shell.nix | 2 |
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")]) |