mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-28 14:22:50 +03:00
nixos/cadvisor: fixes
- run as non root user, because of docker - run docker by default
This commit is contained in:
parent
decf15fd57
commit
536694bcd4
@ -90,17 +90,9 @@ in {
|
||||
${optionalString cfg.storageDriverSecure "-storage_driver_secure"}
|
||||
''}
|
||||
'';
|
||||
User = "cadvisor";
|
||||
};
|
||||
};
|
||||
|
||||
virtualisation.docker.enable = true;
|
||||
|
||||
users.extraUsers = singleton {
|
||||
name = "cadvisor";
|
||||
uid = config.ids.uids.cadvisor;
|
||||
description = "Cadvisor user";
|
||||
extraGroups = [ "docker" ];
|
||||
};
|
||||
virtualisation.docker.enable = mkDefault true;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user