Archived
add linode disko config
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user