Archived
add linode disko config
This commit is contained in:
@@ -145,6 +145,7 @@ docker = nixpkgs.lib.nixosSystem {
|
|||||||
linode-minimal = nixpkgs.lib.nixosSystem {
|
linode-minimal = nixpkgs.lib.nixosSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
modules = [
|
modules = [
|
||||||
|
inputs.disko.nixosModules.disko
|
||||||
./hosts/linode/configuration.nix
|
./hosts/linode/configuration.nix
|
||||||
./modules/hardware-configuration/vm/linode.nix
|
./modules/hardware-configuration/vm/linode.nix
|
||||||
|
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
imports =
|
imports =
|
||||||
[ # Include the results of the hardware scan.
|
[ # Include the results of the hardware scan.
|
||||||
../../modules/common/configuration.nix
|
../../modules/common/configuration.nix
|
||||||
|
../../modules/disko/linode.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Use the GRUB 2 boot loader.
|
# Use the GRUB 2 boot loader.
|
||||||
@@ -42,7 +43,7 @@
|
|||||||
# services.xserver.enable = true;
|
# services.xserver.enable = true;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Configure keymap in X11
|
# Configure keymap in X11
|
||||||
# services.xserver.xkb.layout = "us";
|
# services.xserver.xkb.layout = "us";
|
||||||
|
|||||||
@@ -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