about summary refs log tree commit diff
path: root/modules/docker.nix
diff options
context:
space:
mode:
authorazahi <azat@bahawi.net>2024-11-17 18:21:17 +0300
committerazahi <azat@bahawi.net>2024-11-17 18:21:17 +0300
commitfc2e6a3a6b568d5ae1004723ea54c123af7e9242 (patch)
tree5adf2a7741c6ee319833fe6079f9958961ef56b5 /modules/docker.nix
parent2024-11-10 (diff)
2024-11-17 HEAD master
Diffstat (limited to '')
-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