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

@@ -1,6 +1,9 @@
{ inputs, ... }:
{ inputs, system, ... }:
{
imports = [ inputs.nur.modules.nixos.default ];
nixpkgs.config.allowUnfree = true;
nixpkgs = {
hostPlatform = system;
config.allowUnfree = true;
};
}

View File

@@ -2,4 +2,5 @@
{
environment.systemPackages = with pkgs; [ powertop ];
powerManagement.powertop.enable = true;
systemd.services.powertop.postStart = builtins.readFile ./mouse.sh;
}

View File

@@ -1,6 +1,5 @@
SEARCH_STRINGS=(
"Mouse"
"Razer DeathAdder Elite"
"Razer DeathAdder V3 HyperSpeed"
)

View File

@@ -8,11 +8,13 @@
x = mkOption {
type = int;
description = "Base resolution width.";
default = 1920;
};
y = mkOption {
type = int;
description = "Base resolution height.";
default = 1080;
};
};
@@ -20,11 +22,13 @@
x = mkOption {
type = int;
description = "Output resolution width.";
default = 1920;
};
y = mkOption {
type = int;
description = "Output resolution height.";
default = 1080;
};
};
};

View File

@@ -62,23 +62,17 @@
];
};
nixpkgs = {
hostPlatform = "x86_64-linux";
config = {
cudaSupport = true;
rocmSupport = true;
};
nixpkgs.config = {
cudaSupport = true;
rocmSupport = true;
};
powerManagement.enable = true;
systemd.services.powertop.postStart = builtins.readFile ./scripts/mouse.sh;
services = {
xserver.videoDrivers = [ "nvidia" ];
fstrim.enable = true;
tlp.settings.DISK_DEVICES = "nvme0n1 nvme1n1";
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
};
programs.gamescope.env = {
@@ -100,7 +94,7 @@
gestures.workspace_swipe_distance = 600;
};
programs.zsh.loginExtra = lib.mkBefore (builtins.readFile ./scripts/card.sh);
programs.zsh.loginExtra = lib.mkBefore (builtins.readFile ./card.sh);
}
];
}

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;
}
];
}

View File

@@ -1,6 +1,6 @@
{ ... }:
{
hardware.enableAllFirmware = true;
hardware.enableAllHardware = true;
boot.initrd.kernelModules = [
"nvme"
@@ -11,7 +11,5 @@
"sd_mod"
];
nixpkgs.hostPlatform = "x86_64-linux";
services.fstrim.enable = true;
}