Add docker module and install for all
This commit is contained in:
parent
251e630242
commit
e319b48849
|
@ -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" = {
|
||||
|
|
|
@ -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
8
modules/docker.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
virtualisation.docker = {
|
||||
enable = true;
|
||||
storageDriver = "overlay2";
|
||||
liveRestore = true;
|
||||
autoPrune.enable = true;
|
||||
};
|
||||
}
|
|
@ -7,6 +7,7 @@
|
|||
../modules/remote-builder.nix
|
||||
../modules/sound.nix
|
||||
../modules/ssh.nix
|
||||
../modules/docker.nix
|
||||
../users/fleaz.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -2,8 +2,9 @@
|
|||
users.users.fleaz = {
|
||||
isNormalUser = true;
|
||||
extraGroups = [
|
||||
"wheel" # Enable ‘sudo’ for the user.
|
||||
"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/";
|
||||
|
|
Loading…
Reference in a new issue