Rename modules directory
All checks were successful
/ check (push) Successful in 55s

This commit is contained in:
Oliver Davies 2025-08-18 12:00:00 +01:00
parent a0575bdb2a
commit 703bf836de
210 changed files with 1 additions and 1 deletions

24
modules/docker.nix Normal file
View file

@ -0,0 +1,24 @@
{ config, lib, ... }:
{
flake.modules.nixos.pc = args: {
options.docker.enable = lib.mkEnableOption "Enable Docker";
config = lib.mkIf args.config.docker.enable {
virtualisation = {
oci-containers.backend = "docker";
docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
};
users.users.${config.flake.meta.owner.username}.extraGroups = [ "docker" ];
};
};
}