Add docker module and install for all

This commit is contained in:
fleaz 2022-02-14 18:13:38 +01:00
parent 251e630242
commit e319b48849
5 changed files with 11 additions and 11 deletions

View file

@ -38,11 +38,6 @@
services.printing.enable = true;
services.printing.drivers = with pkgs; [ splix ];
virtualisation.podman = {
enable = true;
dockerCompat = true;
};
# output = {
# "*".bg = "/home/fleaz/Downloads/spongebob.jpg fill";
# "DVI-D-1" = {

View file

@ -109,11 +109,6 @@ in
services.openssh.enable = true;
programs.ssh.startAgent = true;
virtualisation.podman = {
enable = true;
dockerCompat = true;
dockerSocket.enable = true;
};
# List services that you want to enable:

8
modules/docker.nix Normal file
View file

@ -0,0 +1,8 @@
{
virtualisation.docker = {
enable = true;
storageDriver = "overlay2";
liveRestore = true;
autoPrune.enable = true;
};
}

View file

@ -7,6 +7,7 @@
../modules/remote-builder.nix
../modules/sound.nix
../modules/ssh.nix
../modules/docker.nix
../users/fleaz.nix
];
}

View file

@ -4,6 +4,7 @@
extraGroups = [
"wheel" # Enable sudo for the user.
"networkmanager" # Access to networkmanager
"docker" # Access to the "/run/docker.sock"
];
shell = pkgs.zsh;
hashedPassword = "$6$9dARC6e2RxgPC9f1$QfXpT71cXA7YiFhv75Nnq2OrbQ8xlHMzgrJdaBaETaAVHLX5j8QUAl71dxMlqD.CtTLxe566kL5Q6da7Kqnvp/";