mirror of
https://github.com/NixOS/mobile-nixos.git
synced 2024-12-18 13:31:36 +03:00
8 lines
218 B
Ruby
8 lines
218 B
Ruby
|
# Handles lazy-loading the configuration, and giving a value for a given key.
|
||
|
module Configuration
|
||
|
def self.[](key)
|
||
|
@configuration ||= JSON.parse(File.read("/etc/boot/config"));
|
||
|
@configuration[key]
|
||
|
end
|
||
|
end
|