about summary refs log tree commit diff
path: root/modules/docker.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/docker.nix')
-rw-r--r--modules/docker.nix9
1 files changed, 5 insertions, 4 deletions
diff --git a/modules/docker.nix b/modules/docker.nix
index 62dc095..330d417 100644
--- a/modules/docker.nix
+++ b/modules/docker.nix
@@ -5,14 +5,13 @@
   pkgs,
   ...
 }:
-with lib;
 let
   cfg = config.nixfiles.modules.docker;
 in
 {
-  options.nixfiles.modules.docker.enable = mkEnableOption "Docker";
+  options.nixfiles.modules.docker.enable = lib.mkEnableOption "Docker";
 
-  config = mkIf cfg.enable {
+  config = lib.mkIf cfg.enable {
     assertions = [
       {
         assertion = cfg.enable -> !config.nixfiles.modules.podman.enable;
@@ -20,12 +19,14 @@ in
       }
     ];
 
+    ark.directories = [ "/var/lib/docker" ];
+
     nixfiles.modules.common.shell.aliases.d = "docker";
 
     secrets.containers-auth = {
       file = "${inputs.self}/secrets/containers-auth";
       path = "${config.my.home}/.docker/config.json";
-      owner = my.username;
+      owner = lib.my.username;
       inherit (config.my) group;
     };
 

Consider giving Nix/NixOS a try! <3