mirror of
https://github.com/nix-community/home-manager.git
synced 2026-11-03 11:20:14 +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.
20 lines
622 B
Nix
20 lines
622 B
Nix
{ config, ... }:
|
|
|
|
{
|
|
programs.t3code = {
|
|
enable = true;
|
|
package = config.lib.test.mkStubPackage { };
|
|
};
|
|
|
|
nmt.script =
|
|
assert !(config.home.activation ? t3codeImmutableConfig);
|
|
assert !(config.home.activation ? t3codeSettingsActivation);
|
|
assert !(config.home.activation ? t3codeKeybindingsActivation);
|
|
assert !(config.home.activation ? t3codeClientSettingsActivation);
|
|
''
|
|
assertPathNotExists "home-files/.t3/userdata/settings.json"
|
|
assertPathNotExists "home-files/.t3/userdata/keybindings.json"
|
|
assertPathNotExists "home-files/.t3/userdata/client-settings.json"
|
|
'';
|
|
}
|