docker
This commit is contained in:
parent
db2b707ef4
commit
cf31d39313
|
@ -1,5 +1,6 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
imports = [
|
imports = [
|
||||||
|
./docker.nix
|
||||||
./fish.nix
|
./fish.nix
|
||||||
./git.nix
|
./git.nix
|
||||||
./home-manager.nix
|
./home-manager.nix
|
||||||
|
|
22
modules/base/docker.nix
Normal file
22
modules/base/docker.nix
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
{ ... }: {
|
||||||
|
# Docker is a utility to pack, ship and run any application as a lightweight
|
||||||
|
# container.
|
||||||
|
# https://nixos.wiki/wiki/Docker
|
||||||
|
|
||||||
|
virtualisation.docker = {
|
||||||
|
enable = true;
|
||||||
|
# Automatically `docker system prune` weekly
|
||||||
|
autoPrune.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# Being a member of the docker group is effectively equivalent to being root,
|
||||||
|
# but without the annoyance of having to type your sudo password all the time.
|
||||||
|
users.extraGroups.docker.members = [ "caspervk" ];
|
||||||
|
|
||||||
|
# Persist docker volumes
|
||||||
|
environment.persistence."/nix/persist" = {
|
||||||
|
directories = [
|
||||||
|
# { directory = "/etc/NetworkManager/system-connections"; user = "root"; group = "root"; mode = "0700"; }
|
||||||
|
];
|
||||||
|
};
|
||||||
|
}
|
|
@ -14,7 +14,7 @@
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"wheel" # allows sudo
|
"wheel" # allows sudo
|
||||||
"video" # allows controlling brightness
|
"video" # allows controlling brightness
|
||||||
# todo: docker, systemd-journal, audio, input, power, nix ?
|
# todo: systemd-journal, audio, input, power, nix ?
|
||||||
];
|
];
|
||||||
uid = 1000;
|
uid = 1000;
|
||||||
openssh.authorizedKeys.keys = [
|
openssh.authorizedKeys.keys = [
|
||||||
|
|
Loading…
Reference in a new issue