]> Untitled Git - monorepo.git/commitdiff
add docker to setup
authorPreston Pan <ret2pop@gmail.com>
Tue, 19 Aug 2025 01:55:34 +0000 (18:55 -0700)
committerPreston Pan <ret2pop@gmail.com>
Tue, 19 Aug 2025 01:55:34 +0000 (18:55 -0700)
config/nix.org
nix/modules/configuration.nix
nix/modules/docker.nix [new file with mode: 0644]

index 34e7d0ddb569b162aab045542f4ab7097122c2db..125547a3dcc1362c723127529682a290a9580686 100644 (file)
@@ -365,6 +365,15 @@ Still, it is suitable for using Krita.
   }
 #+end_src
 You should add your own video drivers in a custom machine configuration.
+** Docker
+In order to run docker containers, I need this file:
+#+begin_src nix :tangle ../nix/modules/docker.nix
+  { lib, config, vars, ... }:
+  {
+    virtualisation.docker.enable = true;
+  }
+#+end_src
+
 ** Pipewire
 My low latency pipewire configuration is used for music production, as well as for regular
 desktop usage. Pipewire is much better than pulseaudio because it supports jack with the same
@@ -856,6 +865,7 @@ because they enhance security.
       ./murmur.nix
       ./ngircd.nix
       ./znc.nix
+      ./docker.nix
     ];
 
     documentation = {
@@ -1155,6 +1165,7 @@ because they enhance security.
     users.groups.ngircd = lib.mkDefault {};
 
     users.users = {
+
       ngircd = {
         isSystemUser = lib.mkDefault true;
         group = "ngircd";
@@ -1192,10 +1203,11 @@ because they enhance security.
         openssh.authorizedKeys.keys = [
           "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICts6+MQiMwpA+DfFQxjIN214Jn0pCw/2BDvOzPhR/H2 preston@continuity-dell"
         ];
+
          initialPassword = "${config.monorepo.vars.userName}";
          isNormalUser = true;
          description = config.monorepo.vars.fullName;
-         extraGroups = [ "networkmanager" "wheel" "video" "docker" "jackaudio" "tss" "dialout" ];
+         extraGroups = [ "networkmanager" "wheel" "video" "docker" "jackaudio" "tss" "dialout" "docker" ];
          shell = pkgs.zsh;
          packages = [];
       };
index 65c566e9ab0ebe5a54e643d16316c432cd2f68fa..5439682445216d6e88b12fca950cb17af4cde436 100644 (file)
@@ -19,6 +19,7 @@
     ./murmur.nix
     ./ngircd.nix
     ./znc.nix
+    ./docker.nix
   ];
 
   documentation = {
   users.groups.ngircd = lib.mkDefault {};
 
   users.users = {
+
     ngircd = {
       isSystemUser = lib.mkDefault true;
       group = "ngircd";
       openssh.authorizedKeys.keys = [
         "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICts6+MQiMwpA+DfFQxjIN214Jn0pCw/2BDvOzPhR/H2 preston@continuity-dell"
       ];
+
          initialPassword = "${config.monorepo.vars.userName}";
          isNormalUser = true;
          description = config.monorepo.vars.fullName;
-         extraGroups = [ "networkmanager" "wheel" "video" "docker" "jackaudio" "tss" "dialout" ];
+         extraGroups = [ "networkmanager" "wheel" "video" "docker" "jackaudio" "tss" "dialout" "docker" ];
          shell = pkgs.zsh;
          packages = [];
     };
diff --git a/nix/modules/docker.nix b/nix/modules/docker.nix
new file mode 100644 (file)
index 0000000..dbe4326
--- /dev/null
@@ -0,0 +1,4 @@
+{ lib, config, vars, ... }:
+{
+  virtualisation.docker.enable = true;
+}