docker-cli: add module (#7411)

This commit is contained in:
Friedrich Altheide 2025-07-10 22:36:53 +02:00 committed by GitHub
parent d52da303ef
commit 729c5e5465
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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}
'';
}