diff options
author | Christian Segundo | 2024-02-27 23:09:32 +0100 |
---|---|---|
committer | Christian Segundo | 2024-02-27 23:09:32 +0100 |
commit | 0a9090de9b23d0cc9c504916d0d060b3fb4ab7ff (patch) | |
tree | 2ddff22382872379a913ba0b3fdf2c078d5199b2 | |
parent | 8722bce86acc4d309f68b4a77d74ad0488f9eea2 (diff) | |
download | hm-extra-0a9090de9b23d0cc9c504916d0d060b3fb4ab7ff.tar.gz |
make statix happy
-rw-r--r-- | programs/colima.nix | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/programs/colima.nix b/programs/colima.nix index a3317a9..ecf412a 100644 --- a/programs/colima.nix +++ b/programs/colima.nix @@ -41,16 +41,17 @@ in }; in lib.mkIf cfg.enable { - home.packages = [ cfg.package ]; - home.sessionVariables = { - DOCKER_HOST = "unix://${config.home.homeDirectory}/.colima/docker.sock"; + home = { + packages = [ cfg.package ]; + sessionVariables = { + DOCKER_HOST = "unix://${config.home.homeDirectory}/.colima/docker.sock"; + }; + # because Colima writes to this file on startup + activation.colimaConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] '' + mkdir -p ~/.colima/default + cp -f "${colimaConfig}" ~/.colima/default/colima.yaml + chmod 644 ~/.colima/default/colima.yaml + ''; }; - - # because Colima writes to this file on startup - home.activation.colimaConfig = lib.hm.dag.entryAfter [ "writeBoundary" ] '' - mkdir -p ~/.colima/default - cp -f "${colimaConfig}" ~/.colima/default/colima.yaml - chmod 644 ~/.colima/default/colima.yaml - ''; }; } |