mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-02 23:21:02 +01:00
23 lines
571 B
Nix
23 lines
571 B
Nix
{ pkgs, ... }:
|
|
{
|
|
config = {
|
|
programs.discord = {
|
|
enable = true;
|
|
settings.DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING = true;
|
|
};
|
|
|
|
nmt.script =
|
|
let
|
|
configDir =
|
|
if pkgs.stdenv.hostPlatform.isLinux then
|
|
"home-files/.config/discord"
|
|
else
|
|
"home-files/Library/Application Support/discord";
|
|
in
|
|
''
|
|
assertFileExists "${configDir}/settings.json"
|
|
assertFileContent "${configDir}/settings.json" \
|
|
${./basic-settings.json}
|
|
'';
|
|
};
|
|
}
|