add docker
All checks were successful
nixos config pipeline / show-flake (push) Successful in 33s
nixos config pipeline / deploy (push) Successful in 39s

This commit is contained in:
smayzy 2025-08-29 18:53:11 +02:00
parent 0b6e55da82
commit 325a193a38
3 changed files with 22 additions and 0 deletions

View File

@ -19,6 +19,7 @@
virt.enable = true;
hyprland.enable = true;
kde.enable = true;
docker.enable = true;
};
home-manager = {

View File

@ -2,5 +2,6 @@
{
imports = [
./nixos
./docker.nix
];
}

View File

@ -0,0 +1,20 @@
{
lib,
config,
...
}:
let
inherit (lib) mkIf mkOption types;
in
{
options.smayzy.docker.enable = mkOption {
type = types.bool;
default = false;
description = "enable docker";
};
config = mkIf config.smayzy.docker.enable {
virtualisation.docker.enable = true;
users.extraGroups.docker.members = [ "smayzy" ];
};
}