mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 09:54:40 +02:00
machine/thinkman: fix offline disko config
This commit is contained in:
parent
06937b156b
commit
90ed67b7d9
2 changed files with 59 additions and 61 deletions
|
@ -7,14 +7,11 @@
|
||||||
./profiles.nix
|
./profiles.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
./system.nix
|
./system.nix
|
||||||
|
./disko-config.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
networking.hostName = "thinkman";
|
networking.hostName = "thinkman";
|
||||||
|
|
||||||
disko.devices = import ./disko-config.nix {
|
|
||||||
disks = [ "/dev/disk/by-id/nvme-eui.0025385b01410682" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
defaultSopsFile = ./secrets.yaml;
|
defaultSopsFile = ./secrets.yaml;
|
||||||
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
age.sshKeyPaths = [ "/etc/ssh/ssh_host_ed25519_key" ];
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ disks ? [ "/dev/nvme0" ], ... }:
|
|
||||||
{
|
{
|
||||||
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
vdb = {
|
vdb = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = builtins.head disks;
|
device = "/dev/disk/by-id/nvme-eui.0025385b01410682";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
@ -71,4 +71,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue