mirror of
https://github.com/nix-community/home-manager.git
synced 2026-12-06 04:40:17 +00:00
Use shared cleanup of effective file entries for all three immutable toggles. Keep writable defaults and keybinding merging unchanged, and create sensitive user settings with private permissions.
30 lines
715 B
Nix
30 lines
715 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.t3code = {
|
|
enable = true;
|
|
package = null;
|
|
mutableUserSettings = false;
|
|
mutableKeybindings = false;
|
|
mutableClientSettings = false;
|
|
userSettings.enableAssistantStreaming = true;
|
|
keybindings = [
|
|
{
|
|
key = "mod+j";
|
|
command = "terminal.toggle";
|
|
}
|
|
];
|
|
clientSettings.settings.timestampFormat = "locale";
|
|
};
|
|
|
|
home.file.".t3/userdata/settings.json".enable = false;
|
|
home.file.".t3/userdata/keybindings.json".enable = false;
|
|
home.file.".t3/userdata/client-settings.json".enable = false;
|
|
|
|
nmt.script =
|
|
assert !(config.home.activation ? t3codeImmutableConfig);
|
|
''
|
|
assertPathNotExists "home-files/.t3"
|
|
'';
|
|
}
|