added disko configuration

This commit is contained in:
2026-07-13 19:10:21 +10:00
parent a919252a47
commit a5ef1aa519
2 changed files with 38 additions and 0 deletions
+6
View File
@@ -8,6 +8,10 @@
url = "github:nix-community/home-manager/release-26.05"; url = "github:nix-community/home-manager/release-26.05";
inputs.nixpkgs.follows = "nixpkgs"; inputs.nixpkgs.follows = "nixpkgs";
}; };
disko = {
url = "github:nix-community/disko";
inputs.nixpkgs.follows = "nixpkgs";
};
}; };
outputs = { self, nixpkgs, nixos-conf-editor, home-manager, ... } @ inputs: outputs = { self, nixpkgs, nixos-conf-editor, home-manager, ... } @ inputs:
@@ -142,6 +146,8 @@ docker = nixpkgs.lib.nixosSystem {
modules = [ modules = [
./hosts/linode/configuration.nix ./hosts/linode/configuration.nix
./modules/hardware-configuration/vm/linode.nix ./modules/hardware-configuration/vm/linode.nix
./hosts/linode/disko.nix
inputs.disko.nixosModules.disko
home-manager.nixosModules.home-manager { home-manager.nixosModules.home-manager {
home-manager.useGlobalPkgs = true; home-manager.useGlobalPkgs = true;
+32
View File
@@ -0,0 +1,32 @@
{ lib, ... }:
{
disko.devices = {
disk = {
main = {
type = "disk";
device = "/dev/sda";
content = {
type = "gpt";
partitions = {
boot = {
size = "1M";
type = "EF02";
};
root = {
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
};
};
};
};
};
};
};
}