mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
machine/serverle: fix disko formatting file
This commit is contained in:
parent
c958967e5b
commit
8f0a147cb3
2 changed files with 59 additions and 61 deletions
|
@ -1,6 +1,7 @@
|
||||||
{ config, ... }:
|
{ config, ... }:
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
|
./disko-config.nix
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
|
@ -9,10 +10,6 @@
|
||||||
./wifi.nix
|
./wifi.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
disko.devices = import ./disko-config.nix {
|
|
||||||
disks = [ "/dev/disk/by-id/usb-Seagate_Expansion_2HC015KJ-0:0" ];
|
|
||||||
};
|
|
||||||
|
|
||||||
networking.hostName = "serverle";
|
networking.hostName = "serverle";
|
||||||
|
|
||||||
sops = {
|
sops = {
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
{ disks ? [ "/dev/sda" ], ... }:
|
|
||||||
{
|
{
|
||||||
|
disko.devices = {
|
||||||
disk = {
|
disk = {
|
||||||
vdb = {
|
vdb = {
|
||||||
type = "disk";
|
type = "disk";
|
||||||
device = builtins.head disks;
|
device = "/dev/disk/by-id/usb-Seagate_Expansion_2HC015KJ-0:0";
|
||||||
content = {
|
content = {
|
||||||
type = "gpt";
|
type = "gpt";
|
||||||
partitions = {
|
partitions = {
|
||||||
|
@ -71,4 +71,5 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue