hosts/plover: make disko as a dedicated NixOS module

This commit is contained in:
Gabriel Arazas 2024-02-23 07:25:44 +08:00
parent 643d05a0f7
commit 458b8092dc
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC
2 changed files with 43 additions and 45 deletions

View File

@ -14,6 +14,8 @@
"${foodogsquaredModulesPath}/profiles/headless.nix"
"${foodogsquaredModulesPath}/profiles/hardened.nix"
./disko.nix
./modules
];
@ -37,11 +39,6 @@
wireguard.enable = true;
};
# Automatic format and partitioning.
disko.devices = import ./disko.nix {
disks = [ "/dev/sda" ];
};
# Offline SSH!?!
programs.mosh.enable = true;

View File

@ -1,12 +1,12 @@
{ disks ? [ "/dev/sda" ], ... }:
{ config, lib, ... }:
{
disko.devices = {
disk.sda = {
device = builtins.elemAt disks 0;
device = [ "/dev/sda" ];
type = "disk";
content = {
format = "gpt";
type = "table";
type = "gpt";
partitions = [
{
name = "boot";
@ -44,4 +44,5 @@
];
};
};
};
}