Add elara sas specialisation

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-02-10 11:46:22 +00:00
parent ad5039fc3c
commit 73ae6a6a73
11 changed files with 84 additions and 19 deletions

View File

@@ -8,8 +8,6 @@
device = "/dev/disk/by-id/ata-Samsung_SSD_990_EVO_1TB_S7GCNL0XA04998F";
})
./hardware
# elara runs on an external drive on eirene
../eirene/hardware
../common/configs/system/backup
../common/configs/system/bluetooth

View File

@@ -5,4 +5,15 @@
"uas"
"sd_mod"
];
services.tlp.settings.DISK_DEVICES = "sda";
# By default, this host runs on an external SSD attached to eirene...
imports = [ ../../eirene/hardware ];
# ...but it can also run attached to a SAS-provided laptop.
specialisation.sas.configuration = {
disabledModules = [ ../../eirene/hardware ];
imports = [ ./sas ];
};
}

View File

@@ -0,0 +1,29 @@
{ ... }:
{
imports = [
./display.nix
];
hardware = {
enableAllFirmware = true;
cpu = {
cores = 8;
threads = 12;
intel.updateMicrocode = true;
};
};
boot = {
kernelModules = [ "kvm-intel" ];
initrd.kernelModules = [
"thunderbolt"
"vmd"
"nvme"
];
};
powerManagement.enable = true;
services.fstrim.enable = true;
}

View File

@@ -0,0 +1,28 @@
{ ... }:
{
boot.kernelParams = [ "video=eDP-1:1920x1200@60" ];
home-manager.sharedModules = [
{
wayland.windowManager.hyprland.settings.monitor = "eDP-1, 1920x1200@60, 0x0, 1";
programs = {
vscode.userSettings."window.zoomLevel" = (1.25 - 1) / 0.2;
obs-studio.resolution = {
base = {
x = 1920;
y = 1200;
};
output = {
x = 1920;
y = 1200;
};
};
};
theme.cursor.size = 24;
}
];
}