add linode disko config

This commit is contained in:
2026-07-15 09:36:04 +10:00
parent 04de84d03b
commit dea6bfec25
3 changed files with 58 additions and 1 deletions
+1
View File
@@ -145,6 +145,7 @@ docker = nixpkgs.lib.nixosSystem {
linode-minimal = nixpkgs.lib.nixosSystem {
inherit system;
modules = [
inputs.disko.nixosModules.disko
./hosts/linode/configuration.nix
./modules/hardware-configuration/vm/linode.nix
+2 -1
View File
@@ -8,6 +8,7 @@
imports =
[ # Include the results of the hardware scan.
../../modules/common/configuration.nix
../../modules/disko/linode.nix
];
# Use the GRUB 2 boot loader.
@@ -42,7 +43,7 @@
# services.xserver.enable = true;
# Configure keymap in X11
# services.xserver.xkb.layout = "us";
+55
View File
@@ -0,0 +1,55 @@
{ ... }:
{
disko.devices = {
disk.main = {
type = "disk";
device = "/dev/sda";
content = {
# type = "gpt";
partitions = {
root = {
priority = 1;
size = "100%";
content = {
type = "filesystem";
format = "ext4";
mountpoint = "/";
extraArgs = [
"-L"
"nixos"
];
};
};
};
};
};
disk.swap = {
type = "disk";
device = "/dev/sdb";
content = {
# type = "gpt";
partitions = {
swap = {
priority = 1;
size = "100%";
content = {
type = "swap";
extraArgs = [
"-L"
"swap"
];
};
};
};
};
};
};
}