1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00
home-manager/tests/modules/programs/docker-cli/empty-config.nix
Friedrich Altheide c6a01e54af docker-cli: add module (#7411)
(cherry picked from commit 729c5e5465)
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
2025-07-10 23:35:17 -05:00

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}
'';
}