blob: 22c9e07d966757ca98bb369aabf45c0b16976b8f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
{ lib }:
let
self = {
homeManager = import ./home-manager { };
toUserJS = prefs: ''
${lib.concatStrings (
lib.mapAttrsToList (name: value: ''
user_pref("${name}", ${builtins.toJSON value});
'') prefs
)}
'';
updateInputFlag = input: [
"--update-input"
input
];
updateInputFlags = inputs: builtins.concatLists (builtins.map self.updateInputFlag inputs);
};
in
self
|