docker-cli: add module (#7411)

(cherry picked from commit 729c5e5465)
Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Friedrich Altheide 2025-07-10 22:36:53 +02:00 committed by Austin Horstman
parent 05d7a84f50
commit c6a01e54af
6 changed files with 134 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{
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}
'';
}