- system: Module describes core Linux system configuration parameters, and NixOS system parameters. - networking: Basic networking config for metal hosts. - sops: Configures sops-nix to decrypt secrets as appropriate, and provides a useful shell helper. - smb: Reusable module that returns one smb mount. - iscsi: Autoconnect and auto-mount iscsi target. - git: Basic Git config. - docker: Configure Docker. - hardware: Set of modules for physical hardware devices and their related configurations.
10 lines
326 B
Nix
10 lines
326 B
Nix
{ docker, pkgs ? import <nixpkgs>, ... }: {
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
daemon.settings.data-root = "/docker";
|
|
rootless.enable = false;
|
|
rootless.setSocketVariable = true;
|
|
};
|
|
users.users.${docker.username}.extraGroups = [ "docker" ];
|
|
environment.systemPackages = [ pkgs.docker-compose ];
|
|
} |