From 0a9090de9b23d0cc9c504916d0d060b3fb4ab7ff Mon Sep 17 00:00:00 2001 From: Christian Segundo Date: Tue, 27 Feb 2024 23:09:32 +0100 Subject: make statix happy --- programs/colima.nix | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'programs/colima.nix') 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 - ''; }; } -- cgit v1.2.3