Reorganize files
This commit is contained in:
parent
f449490474
commit
58ce7ac394
14 changed files with 2 additions and 2 deletions
30
nix-os/docker.nix
Normal file
30
nix-os/docker.nix
Normal file
|
@ -0,0 +1,30 @@
|
|||
{ lib, config, pkgs, ... }:
|
||||
|
||||
{
|
||||
config.virtualisation.docker = {
|
||||
enable = true;
|
||||
# enableNvidia = true;
|
||||
enableOnBoot = true;
|
||||
storageDriver = if config.fileSystems."/".fsType == "btrfs" then "btrfs" else null;
|
||||
rootless.enable = true;
|
||||
rootless.setSocketVariable = true;
|
||||
daemon.settings = {
|
||||
default-address-pools = [
|
||||
{base = "10.64.0.0/10"; size = 24;}
|
||||
];
|
||||
bip = "10.127.0.1/16";
|
||||
};
|
||||
};
|
||||
config.users.users.indocker = {
|
||||
isSystemUser = true;
|
||||
hashedPassword = "!";
|
||||
uid = 900;
|
||||
group = "indocker";
|
||||
};
|
||||
config.users.groups.indocker = {
|
||||
gid = 900;
|
||||
};
|
||||
config.environment.systemPackages = with pkgs; [
|
||||
docker-compose
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue