From 442a0ad2b8bdae08b44d49c0d3cb9d1d2e117412 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Mon, 28 Oct 2024 12:56:55 +0100 Subject: [PATCH] init docker Former-commit-id: 4657ca3d75bd845d272defacc9d9d2f806ee8c8f --- hosts/laptop/configuration.nix | 1 + nixos/docker.nix | 4 ++++ 2 files changed, 5 insertions(+) create mode 100644 nixos/docker.nix diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 51682ac..f799702 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -17,6 +17,7 @@ ../../nixos/utils.nix ../../nixos/xdg-portal.nix ../../nixos/variables-config.nix + ../../nixos/docker.nix ../../themes/stylix/nixy.nix diff --git a/nixos/docker.nix b/nixos/docker.nix new file mode 100644 index 0000000..6fa3bc6 --- /dev/null +++ b/nixos/docker.nix @@ -0,0 +1,4 @@ +{ config, ... }: { + virtualisation.docker.enable = true; + users.users."${config.var.username}".extraGroups = [ "docker" ]; +}