mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-02-12 06:19:00 +00:00
hosts/plover: make disko as a dedicated NixOS module
This commit is contained in:
parent
643d05a0f7
commit
458b8092dc
@ -14,6 +14,8 @@
|
|||||||
"${foodogsquaredModulesPath}/profiles/headless.nix"
|
"${foodogsquaredModulesPath}/profiles/headless.nix"
|
||||||
"${foodogsquaredModulesPath}/profiles/hardened.nix"
|
"${foodogsquaredModulesPath}/profiles/hardened.nix"
|
||||||
|
|
||||||
|
./disko.nix
|
||||||
|
|
||||||
./modules
|
./modules
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -37,11 +39,6 @@
|
|||||||
wireguard.enable = true;
|
wireguard.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Automatic format and partitioning.
|
|
||||||
disko.devices = import ./disko.nix {
|
|
||||||
disks = [ "/dev/sda" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
# Offline SSH!?!
|
# Offline SSH!?!
|
||||||
programs.mosh.enable = true;
|
programs.mosh.enable = true;
|
||||||
|
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
{ disks ? [ "/dev/sda" ], ... }:
|
{ config, lib, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
|
disko.devices = {
|
||||||
disk.sda = {
|
disk.sda = {
|
||||||
device = builtins.elemAt disks 0;
|
device = [ "/dev/sda" ];
|
||||||
type = "disk";
|
type = "disk";
|
||||||
content = {
|
content = {
|
||||||
format = "gpt";
|
type = "gpt";
|
||||||
type = "table";
|
|
||||||
partitions = [
|
partitions = [
|
||||||
{
|
{
|
||||||
name = "boot";
|
name = "boot";
|
||||||
@ -44,4 +44,5 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user