Files
dotfiles/hosts/privision-main.nix
Sebastian Moser 472e5082e7 ...
2023-11-20 13:49:26 +01:00

60 lines
1.3 KiB
Nix

{ inputs, self, nixpkgs, specialArgs, ... }:
{
outputs.apps = {
main = inputs.nix-provision.mkProvision self.outputs.nixosConfigurations.main;
};
outputs.nixosConfigurations.main = nixpkgs.lib.nixosSystem {
inherit specialArgs;
system = "x86_64-linux";
modules = [
./hosts/main.nix
./hardware/my-hp-laptop.nix
{
provision = {
type = "disk";
# other types: phone, wsl, libirt-vm, installer,
lvm.physicalVolumes.lvm0 = {
logicalVolumes = [
{
label = "root";
type = "btrfs";
}
{
label = "swap";
type = "swap";
}
{
label = "work";
type = "btrfs";
}
];
};
hardware.boot = {
};
hardware.drive = {
type = "gpt";
partitions = [
{
label = "boot";
type = "fat32";
}
{
type = "luks";
secret = "luks-secret";
containing = {
type = "lvm-pv";
partOf = "lvm0";
};
}
];
};
};
}
];
};
}