Add elara sas specialisation
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
{ inputs, ... }:
|
{ inputs, system, ... }:
|
||||||
{
|
{
|
||||||
imports = [ inputs.nur.modules.nixos.default ];
|
imports = [ inputs.nur.modules.nixos.default ];
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs = {
|
||||||
|
hostPlatform = system;
|
||||||
|
config.allowUnfree = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
@@ -2,4 +2,5 @@
|
|||||||
{
|
{
|
||||||
environment.systemPackages = with pkgs; [ powertop ];
|
environment.systemPackages = with pkgs; [ powertop ];
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
|
systemd.services.powertop.postStart = builtins.readFile ./mouse.sh;
|
||||||
}
|
}
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
SEARCH_STRINGS=(
|
SEARCH_STRINGS=(
|
||||||
"Mouse"
|
"Mouse"
|
||||||
"Razer DeathAdder Elite"
|
|
||||||
"Razer DeathAdder V3 HyperSpeed"
|
"Razer DeathAdder V3 HyperSpeed"
|
||||||
)
|
)
|
||||||
|
|
@@ -8,11 +8,13 @@
|
|||||||
x = mkOption {
|
x = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
description = "Base resolution width.";
|
description = "Base resolution width.";
|
||||||
|
default = 1920;
|
||||||
};
|
};
|
||||||
|
|
||||||
y = mkOption {
|
y = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
description = "Base resolution height.";
|
description = "Base resolution height.";
|
||||||
|
default = 1080;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -20,11 +22,13 @@
|
|||||||
x = mkOption {
|
x = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
description = "Output resolution width.";
|
description = "Output resolution width.";
|
||||||
|
default = 1920;
|
||||||
};
|
};
|
||||||
|
|
||||||
y = mkOption {
|
y = mkOption {
|
||||||
type = int;
|
type = int;
|
||||||
description = "Output resolution height.";
|
description = "Output resolution height.";
|
||||||
|
default = 1080;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@@ -62,23 +62,17 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
nixpkgs = {
|
nixpkgs.config = {
|
||||||
hostPlatform = "x86_64-linux";
|
cudaSupport = true;
|
||||||
|
rocmSupport = true;
|
||||||
config = {
|
|
||||||
cudaSupport = true;
|
|
||||||
rocmSupport = true;
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.enable = true;
|
powerManagement.enable = true;
|
||||||
|
|
||||||
systemd.services.powertop.postStart = builtins.readFile ./scripts/mouse.sh;
|
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
xserver.videoDrivers = [ "nvidia" ];
|
xserver.videoDrivers = [ "nvidia" ];
|
||||||
fstrim.enable = true;
|
fstrim.enable = true;
|
||||||
tlp.settings.DISK_DEVICES = "nvme0n1 nvme1n1";
|
tlp.settings.DISK_DEVICES = lib.mkDefault "nvme0n1 nvme1n1";
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gamescope.env = {
|
programs.gamescope.env = {
|
||||||
@@ -100,7 +94,7 @@
|
|||||||
gestures.workspace_swipe_distance = 600;
|
gestures.workspace_swipe_distance = 600;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zsh.loginExtra = lib.mkBefore (builtins.readFile ./scripts/card.sh);
|
programs.zsh.loginExtra = lib.mkBefore (builtins.readFile ./card.sh);
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
@@ -8,8 +8,6 @@
|
|||||||
device = "/dev/disk/by-id/ata-Samsung_SSD_990_EVO_1TB_S7GCNL0XA04998F";
|
device = "/dev/disk/by-id/ata-Samsung_SSD_990_EVO_1TB_S7GCNL0XA04998F";
|
||||||
})
|
})
|
||||||
./hardware
|
./hardware
|
||||||
# elara runs on an external drive on eirene
|
|
||||||
../eirene/hardware
|
|
||||||
|
|
||||||
../common/configs/system/backup
|
../common/configs/system/backup
|
||||||
../common/configs/system/bluetooth
|
../common/configs/system/bluetooth
|
||||||
|
@@ -5,4 +5,15 @@
|
|||||||
"uas"
|
"uas"
|
||||||
"sd_mod"
|
"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 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
29
hosts/elara/hardware/sas/default.nix
Normal file
29
hosts/elara/hardware/sas/default.nix
Normal 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;
|
||||||
|
}
|
28
hosts/elara/hardware/sas/display.nix
Normal file
28
hosts/elara/hardware/sas/display.nix
Normal 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;
|
||||||
|
}
|
||||||
|
];
|
||||||
|
}
|
@@ -1,6 +1,6 @@
|
|||||||
{ ... }:
|
{ ... }:
|
||||||
{
|
{
|
||||||
hardware.enableAllFirmware = true;
|
hardware.enableAllHardware = true;
|
||||||
|
|
||||||
boot.initrd.kernelModules = [
|
boot.initrd.kernelModules = [
|
||||||
"nvme"
|
"nvme"
|
||||||
@@ -11,7 +11,5 @@
|
|||||||
"sd_mod"
|
"sd_mod"
|
||||||
];
|
];
|
||||||
|
|
||||||
nixpkgs.hostPlatform = "x86_64-linux";
|
|
||||||
|
|
||||||
services.fstrim.enable = true;
|
services.fstrim.enable = true;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user