This commit is contained in:
xyno (Philipp Hochkamp) 2023-06-22 17:17:56 +02:00
parent 31637568e2
commit ac505934cf
6 changed files with 135 additions and 212 deletions

View file

@ -1,9 +1,9 @@
{ disks ? [ "/dev/vda" ], ... }: {
{ ... }: {
disko.devices = {
disk = {
vda = {
type = "disk";
device = builtins.elemAt disks 0;
device = "/dev/vda";
content = {
type = "table";
format = "gpt";
@ -53,8 +53,8 @@
lvm_vg = {
pool = {
type = "lvm_vg";
nix = {
persistent = {
lvs = {
nix = {
size = "100%";
content = {
type = "filesystem";

View file

@ -6,11 +6,8 @@ let
pubkeys = import ../../data/pubkeys.nix;
in
{
imports = [ "${modulesPath}/profiles/qemu-guest.nix" inputs.disko.nixosModules.disko ];
imports = [ "${modulesPath}/profiles/qemu-guest.nix" inputs.disko.nixosModules.disko ./disk-config.nix ];
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-uuid/d2cb12f8-67e3-4725-86c3-0b5c7ebee3a6";
disko.devices = import ./disk-config.nix {
inherit lib;
};
boot.initrd = {
network = {