Browse Source

client: Add docker

main
Dustin Frisch 3 days ago
parent
commit
5a25a27cd9
No known key found for this signature in database GPG Key ID: B4C3BF012D9B26BE
  1. 1
      client/default.nix
  2. 26
      client/docker.nix

1
client/default.nix

@ -19,6 +19,7 @@ in
./users.nix ./users.nix
./desktop.nix ./desktop.nix
./programs.nix ./programs.nix
./docker.nix
]; ];
deployment = optionalAttrs (client != null) { deployment = optionalAttrs (client != null) {

26
client/docker.nix

@ -0,0 +1,26 @@
{ lib, ... }:
with lib;
{
virtualisation.docker = {
enable = true;
daemon.settings = {
group = mkForce "users";
};
autoPrune = {
enable = true;
dates = "weekly";
};
};
hardware.nvidia-container-toolkit.enable = true;
systemd.sockets."docker" = {
socketConfig = {
SocketGroup = mkForce "users";
};
};
}
Loading…
Cancel
Save