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