summaryrefslogtreecommitdiff
path: root/systems/afrodite/hardware.nix
diff options
context:
space:
mode:
authorLeonardo <noreply@leoflo.me>2026-03-18 16:58:43 +0100
committerLeonardo <noreply@leoflo.me>2026-03-18 16:58:43 +0100
commit32c4d5def0a00c13f0ed012539ff1df5917b1547 (patch)
tree32fb5fb54a8b4d8fd72f3ccb3e1d8c98cb7da94d /systems/afrodite/hardware.nix
parent4678bae1d91e35957f96dc497e46d7995c4fd3be (diff)
downloadnixos-32c4d5def0a00c13f0ed012539ff1df5917b1547.tar.gz
nixos-32c4d5def0a00c13f0ed012539ff1df5917b1547.zip
configurazione di afrodite
Diffstat (limited to 'systems/afrodite/hardware.nix')
-rw-r--r--systems/afrodite/hardware.nix58
1 files changed, 57 insertions, 1 deletions
diff --git a/systems/afrodite/hardware.nix b/systems/afrodite/hardware.nix
index 51ddcd0..edc6126 100644
--- a/systems/afrodite/hardware.nix
+++ b/systems/afrodite/hardware.nix
@@ -1,7 +1,63 @@
-{config, lib, modulesPath, ...}: {
+{lib, modulesPath, ...}: {
imports = [
(modulesPath + "/installer/scan/not-detected.nix")
+ (modulesPath + "/profiles/qemu-guest.nix")
];
+ disko.devices = {
+ disk.disk1 = {
+ device = lib.mkDefault "/dev/sda";
+ type = "disk";
+
+ content = {
+ type = "gpt";
+ partitions = {
+ boot = {
+ name = "boot";
+ size = "1M";
+ type = "EF02";
+ };
+
+ esp = {
+ name = "ESP";
+ size = "500M";
+ type = "EF00";
+ content = {
+ type = "filesystem";
+ format = "vfat";
+ mountpoint = "/boot";
+ };
+ };
+
+ root = {
+ name = "root";
+ size = "100%";
+ content = {
+ type = "lvm_pv";
+ vg = "pool";
+ };
+ };
+ };
+ };
+ };
+
+ lvm_vg = {
+ pool = {
+ type = "lvm_vg";
+ lvs = {
+ root = {
+ size = "100%FREE";
+ content = {
+ type = "filesystem";
+ format = "ext4";
+ mountpoint = "/";
+ mountOptions = [ "defaults" ];
+ };
+ };
+ };
+ };
+ };
+ };
+
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}