From b2feb47e000a95b994300f29cbe632e6198b38fe Mon Sep 17 00:00:00 2001 From: nx2 Date: Fri, 22 Mar 2024 13:12:09 +0100 Subject: [PATCH] Docker! --- configuration.nix | 2 +- home.nix | 3 +-- system-modules/docker.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 system-modules/docker.nix diff --git a/configuration.nix b/configuration.nix index 97e0489..687ae67 100644 --- a/configuration.nix +++ b/configuration.nix @@ -15,7 +15,7 @@ ./system-modules/hsmw.nix ./system-modules/health_reminder.nix ./system-modules/davmail.nix - # ./system-modules/docker.nix + ./system-modules/docker.nix ]; diff --git a/home.nix b/home.nix index 6dbbc5b..acf1e62 100644 --- a/home.nix +++ b/home.nix @@ -58,13 +58,12 @@ nodejs - onnxruntime + speedtest-go (pkgs.python3.withPackages (python-pkgs: [ python-pkgs.ipython python-pkgs.pipdeptree python-pkgs.requests - python-pkgs.onnxruntime ])) (writeShellScriptBin "nxrbs-nix" '' set -e diff --git a/system-modules/docker.nix b/system-modules/docker.nix new file mode 100644 index 0000000..8b7d957 --- /dev/null +++ b/system-modules/docker.nix @@ -0,0 +1,12 @@ +{ config, pkgs, ... }: + +{ + environment.systemPackages = with pkgs; [ + lazydocker + ]; + + + virtualisation.docker.enable = true; + users.users.nx2.extraGroups = [ "docker" ]; + users.extraGroups.docker.members = [ "username-with-access-to-socket" ]; +} \ No newline at end of file