OOKNET                             [ /  search the index  ]  
──────────────────────────────────────────────────────────────────────────────────────
══════════════════════════════════════════════════════════════════════════════════════
OOKNET   [ /  search  ]  
────────────────────────────────────────────────
════════════════════════════════════════════════
 
HASH      07d3b517738c
DATE      2025-05-09
SUBJECT   disko: initial configuration
FILES     7 CHANGED
HASH      07d3b517738c
DATE      2025-05-09
SUBJECT   disko: initial configuration
FILES     7 CHANGED
 

diff --git a/flake.lock b/flake.lock
index 77598f2..02885f2 100644
--- a/flake.lock
+++ b/flake.lock
@@ -170,6 +170,26 @@
         "type": "github"
       }
     },
+    "disko": {
+      "inputs": {
+        "nixpkgs": [
+          "nixpkgs"
+        ]
+      },
+      "locked": {
+        "lastModified": 1746670155,
+        "narHash": "sha256-UjpGmyOZ+TfW1CsHb+Pvm69UCuI2SL6wAceDP1kngzw=",
+        "owner": "nix-community",
+        "repo": "disko",
+        "rev": "c4fe2d108b186ff2126f5d62c67a8fdc5d0cd860",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nix-community",
+        "repo": "disko",
+        "type": "github"
+      }
+    },
     "firefox-addons": {
       "inputs": {
         "nixpkgs": [
@@ -1048,6 +1068,7 @@
     "root": {
       "inputs": {
         "deploy-rs": "deploy-rs",
+        "disko": "disko",
         "firefox-addons": "firefox-addons",
         "flake-parts": "flake-parts",
         "flake-utils": "flake-utils",
@@ -1124,11 +1145,11 @@
         ]
       },
       "locked": {
-        "lastModified": 1744978946,
-        "narHash": "sha256-m103z86H0iHdhk4Xm8R8DeJ2DlRe6/YYNIqMCEYzFPY=",
+        "lastModified": 1746702445,
+        "narHash": "sha256-2lWr1zip04ROs1wAv9E0Er2DgswTPHdJ81L7bgwgGCw=",
         "ref": "refs/heads/master",
-        "rev": "5244719cdf9063255c4d194d75fba3be4116fb3b",
-        "revCount": 44,
+        "rev": "a53fb9a0d7ba7c3167d74788a2a82887ef04a827",
+        "revCount": 45,
         "type": "git",
         "url": "ssh://[email protected]/ooks-io/kunzen"
       },

diff --git a/flake.lock b/flake.lock
index 77598f2..02885f2 100644
--- a/flake.lock
+++ b/flake.lock
@@ -170,6 +170,26 @@
         "type": "github"
       }
     },
+    "disko": {
+      "inputs": {
+        "nixpkgs": [
+          "nixpkgs"
+        ]
+      },
+      "locked": {
+        "lastModified": 1746670155,
+        "narHash": "sha256-UjpGmyOZ+TfW1CsH
b+Pvm69UCuI2SL6wAceDP1kngzw=",
+        "owner": "nix-community",
+        "repo": "disko",
+        "rev": "c4fe2d108b186ff2126f5d62c67
a8fdc5d0cd860",
+        "type": "github"
+      },
+      "original": {
+        "owner": "nix-community",
+        "repo": "disko",
+        "type": "github"
+      }
+    },
     "firefox-addons": {
       "inputs": {
         "nixpkgs": [
@@ -1048,6 +1068,7 @@
     "root": {
       "inputs": {
         "deploy-rs": "deploy-rs",
+        "disko": "disko",
         "firefox-addons": "firefox-addons",
         "flake-parts": "flake-parts",
         "flake-utils": "flake-utils",
@@ -1124,11 +1145,11 @@
         ]
       },
       "locked": {
-        "lastModified": 1744978946,
-        "narHash": "sha256-m103z86H0iHdhk4X
m8R8DeJ2DlRe6/YYNIqMCEYzFPY=",
+        "lastModified": 1746702445,
+        "narHash": "sha256-2lWr1zip04ROs1wA
v9E0Er2DgswTPHdJ81L7bgwgGCw=",
         "ref": "refs/heads/master",
-        "rev": "5244719cdf9063255c4d194d75f
ba3be4116fb3b",
-        "revCount": 44,
+        "rev": "a53fb9a0d7ba7c3167d74788a2a
82887ef04a827",
+        "revCount": 45,
         "type": "git",
         "url": "ssh://[email protected]/ooks-i
o/kunzen"
       },
 

diff --git a/flake.nix b/flake.nix
index da13815..31af690 100644
--- a/flake.nix
+++ b/flake.nix
@@ -39,6 +39,13 @@
       };
     };
 
+    disko = {
+      url = "github:nix-community/disko";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+      };
+    };
+
     nix-index-db = {
       url = "github:nix-community/nix-index-database";
       inputs.nixpkgs.follows = "nixpkgs";

diff --git a/flake.nix b/flake.nix
index da13815..31af690 100644
--- a/flake.nix
+++ b/flake.nix
@@ -39,6 +39,13 @@
       };
     };
 
+    disko = {
+      url = "github:nix-community/disko";
+      inputs = {
+        nixpkgs.follows = "nixpkgs";
+      };
+    };
+
     nix-index-db = {
       url = "github:nix-community/nix-index
-database";
       inputs.nixpkgs.follows = "nixpkgs";
 

diff --git a/modules/nixos/image/installer.nix b/modules/nixos/image/installer.nix
index 0ec6cfa..d0ff791 100644
--- a/modules/nixos/image/installer.nix
+++ b/modules/nixos/image/installer.nix
@@ -1,5 +1,6 @@
 {
   inputs,
+  inputs',
   config,
   lib,
   pkgs,
@@ -29,6 +30,9 @@ in {
         "cifs"
       ];
     };
+    environment.systemPackages = [
+      inputs'.disko.packages.disko
+    ];
     isoImage = {
       appendToMenuLabel = " ooknet installer";
       contents = [

diff --git a/modules/nixos/image/installer.n
ix b/modules/nixos/image/installer.nix
index 0ec6cfa..d0ff791 100644
--- a/modules/nixos/image/installer.nix
+++ b/modules/nixos/image/installer.nix
@@ -1,5 +1,6 @@
 {
   inputs,
+  inputs',
   config,
   lib,
   pkgs,
@@ -29,6 +30,9 @@ in {
         "cifs"
       ];
     };
+    environment.systemPackages = [
+      inputs'.disko.packages.disko
+    ];
     isoImage = {
       appendToMenuLabel = " ooknet installe
r";
       contents = [
 

diff --git a/modules/nixos/image/isoImage.nix b/modules/nixos/image/isoImage.nix
index 013634b..221636b 100644
--- a/modules/nixos/image/isoImage.nix
+++ b/modules/nixos/image/isoImage.nix
@@ -7,6 +7,7 @@
   inherit (inputs) nixpkgs;
   inherit (lib) mkIf;
   inherit (config.ooknet.host) type;
+  inherit (config.ooknet.secrets) keys;
 in {
   imports = [
     "${nixpkgs}/nixos/modules/installer/cd-dvd/iso-image.nix"
@@ -27,6 +28,8 @@ in {
       enableRedistributableFirmware = true;
     };
 
+    users.users.root.openssh.authorizedKeys.keys = [keys.hosts.ooksinstall];
+
     boot.loader.grub.memtest86.enable = true;
     system.switch.enable = false;
   };

diff --git a/modules/nixos/image/isoImage.ni
x b/modules/nixos/image/isoImage.nix
index 013634b..221636b 100644
--- a/modules/nixos/image/isoImage.nix
+++ b/modules/nixos/image/isoImage.nix
@@ -7,6 +7,7 @@
   inherit (inputs) nixpkgs;
   inherit (lib) mkIf;
   inherit (config.ooknet.host) type;
+  inherit (config.ooknet.secrets) keys;
 in {
   imports = [
     "${nixpkgs}/nixos/modules/installer/cd-
dvd/iso-image.nix"
@@ -27,6 +28,8 @@ in {
       enableRedistributableFirmware = true;
     };
 
+    users.users.root.openssh.authorizedKeys
.keys = [keys.hosts.ooksinstall];
+
     boot.loader.grub.memtest86.enable = tru
e;
     system.switch.enable = false;
   };
 

diff --git a/modules/nixos/server/profiles/ookstest/default.nix b/modules/nixos/se
rver/profiles/ookstest/default.nix
index 7837ffb..51852f8 100644
--- a/modules/nixos/server/profiles/ookstest/default.nix
+++ b/modules/nixos/server/profiles/ookstest/default.nix
@@ -1,5 +1,7 @@
 {
   imports = [
     ./qemu.nix
+    ./disko.nix
+    ./hardware.nix
   ];
 }

diff --git a/modules/nixos/server/profiles/o
okstest/default.nix b/modules/nixos/server/p
rofiles/ookstest/default.nix
index 7837ffb..51852f8 100644
--- a/modules/nixos/server/profiles/ookstest
/default.nix
+++ b/modules/nixos/server/profiles/ookstest
/default.nix
@@ -1,5 +1,7 @@
 {
   imports = [
     ./qemu.nix
+    ./disko.nix
+    ./hardware.nix
   ];
 }
 

diff --git a/modules/nixos/server/profiles/ookstest/disko.nix b/modules/nixos/serv
er/profiles/ookstest/disko.nix
new file mode 100644
index 0000000..f4d7050
--- /dev/null
+++ b/modules/nixos/server/profiles/ookstest/disko.nix
@@ -0,0 +1,53 @@
+{
+  disko.devices = {
+    disk = {
+      disk1 = {
+        device = "/dev/vda";
+        type = "disk";
+        content = {
+          type = "gpt";
+          partitions = {
+            ESP = {
+              type = "EF00";
+              label = "ESP";
+              size = "512M";
+              content = {
+                type = "filesystem";
+                format = "vfat";
+                mountpoint = "/boot";
+                mountOptions = ["defaults"];
+              };
+            };
+            root = {
+              size = "100%";
+              content = {
+                type = "btrfs";
+                extraArgs = ["-f"];
+                subvolumes = {
+                  "/root" = {
+                    mountpoint = "/";
+                    mountOptions = ["compress=zstd"];
+                  };
+                  "/home" = {
+                    mountOptions = ["compress=zstd"];
+                    mountpoint = "/home";
+                  };
+                  "/nix" = {
+                    mountpoint = "/nix";
+                    mountOptions = ["compress=zstd" "noatime"];
+                  };
+                  "/swap" = {
+                    mountpoint = "/swap";
+                    swap = {
+                      swapfile.size = "1G";
+                    };
+                  };
+                };
+              };
+            };
+          };
+        };
+      };
+    };
+  };
+}

diff --git a/modules/nixos/server/profiles/o
okstest/disko.nix b/modules/nixos/server/pro
files/ookstest/disko.nix
new file mode 100644
index 0000000..f4d7050
--- /dev/null
+++ b/modules/nixos/server/profiles/ookstest
/disko.nix
@@ -0,0 +1,53 @@
+{
+  disko.devices = {
+    disk = {
+      disk1 = {
+        device = "/dev/vda";
+        type = "disk";
+        content = {
+          type = "gpt";
+          partitions = {
+            ESP = {
+              type = "EF00";
+              label = "ESP";
+              size = "512M";
+              content = {
+                type = "filesystem";
+                format = "vfat";
+                mountpoint = "/boot";
+                mountOptions = ["defaults"]
;
+              };
+            };
+            root = {
+              size = "100%";
+              content = {
+                type = "btrfs";
+                extraArgs = ["-f"];
+                subvolumes = {
+                  "/root" = {
+                    mountpoint = "/";
+                    mountOptions = ["compre
ss=zstd"];
+                  };
+                  "/home" = {
+                    mountOptions = ["compre
ss=zstd"];
+                    mountpoint = "/home";
+                  };
+                  "/nix" = {
+                    mountpoint = "/nix";
+                    mountOptions = ["compre
ss=zstd" "noatime"];
+                  };
+                  "/swap" = {
+                    mountpoint = "/swap";
+                    swap = {
+                      swapfile.size = "1G";
+                    };
+                  };
+                };
+              };
+            };
+          };
+        };
+      };
+    };
+  };
+}
 

diff --git a/outputs/lib/builders.nix b/outputs/lib/builders.nix
index e60d7a3..6944e04 100644
--- a/outputs/lib/builders.nix
+++ b/outputs/lib/builders.nix
@@ -10,6 +10,7 @@
   inherit (self) hozen ook;
   inherit (inputs.secrets.nixosModules) nixosSecrets;
   inherit (inputs.secrets.nixosModules) darwinSecrets;
+  inherit (inputs.disko.nixosModules) disko;
 
   nixosModules = "${self}/modules/nixos";
   commonModules = "${self}/modules/common";
@@ -53,6 +54,7 @@
       nixos.virtualization
       nixos-hm
       nixosSecrets
+      disko
     ];
 
   darwinCore =

diff --git a/outputs/lib/builders.nix b/outp
uts/lib/builders.nix
index e60d7a3..6944e04 100644
--- a/outputs/lib/builders.nix
+++ b/outputs/lib/builders.nix
@@ -10,6 +10,7 @@
   inherit (self) hozen ook;
   inherit (inputs.secrets.nixosModules) nix
osSecrets;
   inherit (inputs.secrets.nixosModules) dar
winSecrets;
+  inherit (inputs.disko.nixosModules) disko
;
 
   nixosModules = "${self}/modules/nixos";
   commonModules = "${self}/modules/common";
@@ -53,6 +54,7 @@
       nixos.virtualization
       nixos-hm
       nixosSecrets
+      disko
     ];
 
   darwinCore =
 
[ BACK TO LOG ]
──────────────────────────────────────────────────────────────────────────────────────
OOKNET
────────────────────────────────────────────────
OOKNET