refactor(nixos): move hardware config options to machine nixos module

This commit is contained in:
Mohammad Rafiq 2025-06-16 19:59:45 +08:00
parent 91c2790b62
commit 8165d96d7c
No known key found for this signature in database
15 changed files with 70 additions and 84 deletions

View file

@ -6,12 +6,9 @@
imports = lib.singleton ../common.nix;
hostname = "apollo";
system = {
bootloader = "systemd-boot";
};
hardware = {
platform = "intel";
machine = {
platform.type = "intel";
bootloader.type = "systemd-boot";
drives.btrfs = {
enable = true;
drive = "/dev/disk/by-id/nvme-eui.002538d221b47b01";

View file

@ -11,7 +11,7 @@
window-manager.hyprland.enable = true;
};
hardware.usb = {
machine.usb = {
automount = true;
enableQmk = true;
};

View file

@ -5,17 +5,14 @@
];
hostname = "mellinoe";
system = {
bootloader = "systemd-boot";
};
hardware = {
machine = {
platform.type = "intel";
bootloader.type = "systemd-boot";
drives.btrfs = {
enable = true;
drive = "/dev/disk/by-id/nvme-KBG40ZPZ128G_TOSHIBA_MEMORY_Z0U103PCNCDL";
ephemeralRoot = true;
};
platform = "intel";
};
desktop.mainMonitor = {

View file

@ -5,18 +5,15 @@
];
hostname = "nemesis";
system = {
bootloader = "systemd-boot";
};
hardware = {
machine = {
platform.type = "amd";
gpu.nvidia.enable = true;
bootloader.type = "systemd-boot";
drives.btrfs = {
enable = true;
drive = "/dev/disk/by-id/nvme-CT2000P3SSD8_2325E6E77434";
ephemeralRoot = true;
};
platform = "amd";
gpu.nvidia.enable = true;
};
desktop = {