Merge pull request 'templates/new-clan: share disko configuration between machines' (#1747) from flake-parts-template into main
This commit is contained in:
@@ -34,6 +34,7 @@
|
|||||||
jon = {
|
jon = {
|
||||||
imports = [
|
imports = [
|
||||||
./modules/shared.nix
|
./modules/shared.nix
|
||||||
|
./modules/disko.nix
|
||||||
./machines/jon/configuration.nix
|
./machines/jon/configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -45,9 +46,7 @@
|
|||||||
clan.core.networking.targetHost = pkgs.lib.mkDefault "root@jon";
|
clan.core.networking.targetHost = pkgs.lib.mkDefault "root@jon";
|
||||||
|
|
||||||
# ssh root@flash-installer.local lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT
|
# ssh root@flash-installer.local lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT
|
||||||
disko.devices.disk.main = {
|
disko.devices.disk.main.device = "/dev/disk/by-id/__CHANGE_ME__";
|
||||||
device = "/dev/disk/by-id/__CHANGE_ME__";
|
|
||||||
};
|
|
||||||
|
|
||||||
# IMPORTANT! Add your SSH key here
|
# IMPORTANT! Add your SSH key here
|
||||||
# e.g. > cat ~/.ssh/id_ed25519.pub
|
# e.g. > cat ~/.ssh/id_ed25519.pub
|
||||||
@@ -64,6 +63,7 @@
|
|||||||
sara = {
|
sara = {
|
||||||
imports = [
|
imports = [
|
||||||
./modules/shared.nix
|
./modules/shared.nix
|
||||||
|
./modules/disko.nix
|
||||||
./machines/sara/configuration.nix
|
./machines/sara/configuration.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -75,9 +75,7 @@
|
|||||||
clan.core.networking.targetHost = pkgs.lib.mkDefault "root@sara";
|
clan.core.networking.targetHost = pkgs.lib.mkDefault "root@sara";
|
||||||
|
|
||||||
# ssh root@flash-installer.local lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT
|
# ssh root@flash-installer.local lsblk --output NAME,ID-LINK,FSTYPE,SIZE,MOUNTPOINT
|
||||||
disko.devices.disk.main = {
|
disko.devices.disk.main.device = "/dev/disk/by-id/__CHANGE_ME__";
|
||||||
device = "/dev/disk/by-id/__CHANGE_ME__";
|
|
||||||
};
|
|
||||||
|
|
||||||
# IMPORTANT! Add your SSH key here
|
# IMPORTANT! Add your SSH key here
|
||||||
# e.g. > cat ~/.ssh/id_ed25519.pub
|
# e.g. > cat ~/.ssh/id_ed25519.pub
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
{ lib, ... }:
|
|
||||||
{
|
|
||||||
boot.loader.grub.efiSupport = lib.mkDefault true;
|
|
||||||
boot.loader.grub.efiInstallAsRemovable = lib.mkDefault true;
|
|
||||||
disko.devices = {
|
|
||||||
disk = {
|
|
||||||
main = {
|
|
||||||
type = "disk";
|
|
||||||
# Set the following in flake.nix for each maschine:
|
|
||||||
# device = <uuid>;
|
|
||||||
content = {
|
|
||||||
type = "gpt";
|
|
||||||
partitions = {
|
|
||||||
boot = {
|
|
||||||
size = "1M";
|
|
||||||
type = "EF02"; # for grub MBR
|
|
||||||
priority = 1;
|
|
||||||
};
|
|
||||||
ESP = {
|
|
||||||
size = "512M";
|
|
||||||
type = "EF00";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "vfat";
|
|
||||||
mountpoint = "/boot";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
root = {
|
|
||||||
size = "100%";
|
|
||||||
content = {
|
|
||||||
type = "filesystem";
|
|
||||||
format = "ext4";
|
|
||||||
mountpoint = "/";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user