Add rootless docker.
parent
5b1c36ae11
commit
c6e048e558
|
@ -41,6 +41,7 @@
|
||||||
set colorcolumn=80,100
|
set colorcolumn=80,100
|
||||||
set expandtab " Spaces instead of tabs.
|
set expandtab " Spaces instead of tabs.
|
||||||
set list " Show hidden characters.
|
set list " Show hidden characters.
|
||||||
|
set listchars=tab:>\ ,trail:-,nbsp:+
|
||||||
set shiftwidth=2 " # of spaces to use for each (auto)indent.
|
set shiftwidth=2 " # of spaces to use for each (auto)indent.
|
||||||
set tabstop=2 " # of spaces a <Tab> in the file counts for.
|
set tabstop=2 " # of spaces a <Tab> in the file counts for.
|
||||||
'';
|
'';
|
||||||
|
@ -91,11 +92,19 @@
|
||||||
users.users.jrpotter = {
|
users.users.jrpotter = {
|
||||||
isNormalUser = true;
|
isNormalUser = true;
|
||||||
extraGroups = [
|
extraGroups = [
|
||||||
|
"docker"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel" # Enable `sudo` for the user.
|
"wheel" # Enable `sudo` for the user.
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
virtualisation.docker.rootless = {
|
||||||
|
enable = true;
|
||||||
|
# Sets the `DOCKER_HOST` variable to the rootless Docker instance for normal
|
||||||
|
# users by default.
|
||||||
|
setSocketVariable = true;
|
||||||
|
};
|
||||||
|
|
||||||
# Copy the NixOS configuration file and link it from the resulting system
|
# Copy the NixOS configuration file and link it from the resulting system
|
||||||
# (/run/current-system/configuration.nix). This is useful in case you
|
# (/run/current-system/configuration.nix). This is useful in case you
|
||||||
# accidentally delete configuration.nix.
|
# accidentally delete configuration.nix.
|
||||||
|
|
Loading…
Reference in New Issue