about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-08-02 15:13:15 +0300
committerAzat Bahawi <azat@bahawi.net>2024-08-02 15:13:15 +0300
commit908e945d148769bd627a25cd57a801acdde0c39c (patch)
tree041ae2a119ff2397e2f4f4666d5640f70c1d462c /modules
parent2024-07-29 (diff)
2024-08-02
Diffstat (limited to '')
-rw-r--r--modules/podman.nix6
-rw-r--r--modules/profiles/dev/containers.nix1
-rw-r--r--modules/profiles/headful.nix11
3 files changed, 17 insertions, 1 deletions
diff --git a/modules/podman.nix b/modules/podman.nix
index bb4fda5..bdef5be 100644
--- a/modules/podman.nix
+++ b/modules/podman.nix
@@ -29,7 +29,11 @@ in
       inherit (config.my) group;
     };
 
-    virtualisation.podman.enable = true;
+    virtualisation.podman = {
+      enable = true;
+      dockerCompat = true;
+      dockerSocket.enable = true;
+    };
 
     environment.systemPackages = with pkgs; [ podman-compose ];
 
diff --git a/modules/profiles/dev/containers.nix b/modules/profiles/dev/containers.nix
index 3fb8774..598289c 100644
--- a/modules/profiles/dev/containers.nix
+++ b/modules/profiles/dev/containers.nix
@@ -44,6 +44,7 @@ in
 
         packages = with pkgs; [
           buildah
+          k3d
           k9s
           kubectl
           kubectl-doctor
diff --git a/modules/profiles/headful.nix b/modules/profiles/headful.nix
index 39f4e98..1b98df0 100644
--- a/modules/profiles/headful.nix
+++ b/modules/profiles/headful.nix
@@ -102,6 +102,9 @@ in
       daemonCPUSchedPolicy = "idle";
       daemonIOSchedClass = "idle";
       daemonIOSchedPriority = 7;
+
+      gc.automatic = false;
+      optimise.automatic = false;
     };
 
     programs = {
@@ -136,5 +139,13 @@ in
       "render"
       "video"
     ];
+
+    # https://github.com/NixOS/nix/issues/3995#issuecomment-2081164515
+    system.extraDependencies =
+      let
+        collectFlakeInputs =
+          input: [ input ] ++ concatMap collectFlakeInputs (attrValues (input.inputs or { }));
+      in
+      concatMap collectFlakeInputs (attrValues inputs);
   };
 }

Consider giving Nix/NixOS a try! <3