mirror of
https://github.com/nix-community/home-manager.git
synced 2025-12-13 04:21:08 +01:00
18 lines
365 B
Nix
18 lines
365 B
Nix
{
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfgDocker = config.programs.docker-cli;
|
|
in
|
|
{
|
|
programs.docker-cli = {
|
|
configPath = ".docker/empty.json";
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileNotRegex home-path/etc/profile.d/hm-session-vars.sh 'DOCKER_CONFIG'
|
|
assertPathNotExists home-files/.docker/config.json
|
|
assertPathNotExists home-files/${cfgDocker.configPath}
|
|
'';
|
|
}
|