universe/hosts/Infini-FRAMEWORK/default.nix

133 lines
4.2 KiB
Nix

{ config, pkgs, lib, ... }: {
imports = [
./hardware-configuration.nix
./filesystems.nix
];
system.stateVersion = "23.05";
info.loc.purdue = true;
persist = {
directories = [
];
files = [
];
};
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
nix.settings.extra-platforms = config.boot.binfmt.emulatedSystems;
modules = {
hardware = {
gpu.intel = true;
form.laptop = true;
peripherals = {
fprint-sensor.enable = true;
printing.enable = true;
};
};
desktop = {
wm.enable = true;
gaming = {
steam.enable = true;
prismlauncher.enable = true;
puzzles.enable = true;
};
};
virtualization.enable = true;
};
programs.ns-usbloader.enable = true;
hardware.uinput.enable = true;
services.joycond.enable = true;
services.fwupd = {
enable = true;
extraRemotes = [ "lvfs-testing" ];
uefiCapsuleSettings.DisableCapsuleUpdateOnDisk = "true";
};
environment.variables = {
GDK_DPI_SCALE = "1.25";
QT_SCALE_FACTOR = "1.25";
};
services.autorandr.profiles =
let
eDP-1 = "00ffffffffffff0009e5ca0b000000002f200104a51c137803de50a3544c99260f505400000001010101010101010101010101010101115cd01881e02d50302036001dbe1000001aa749d01881e02d50302036001dbe1000001a000000fe00424f452043510a202020202020000000fe004e4531333546424d2d4e34310a0073";
DP-4 = "00ffffffffffff0006b34116818202002b200104a52213783a28659759548e271e5054a10800b30095008180814081c0010101010101023a801871382d40582c450058c21000001e000000ff004e414c4d54463136343438310a000000fd00324b185311000a202020202020000000fc0041535553204d42313641430a20011802030a3165030c0010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000003c";
DP-1-3 = "00ffffffffffff0010ac0c40384c41421e0f01030e261f78ee1145a45a4aa024145054a54b00714f8180010101010101010101010101302a009851002a4030701300782d1100001e000000ff00543631313635374d42414c380a000000fc0044454c4c203139303546500a20000000fd00384c1e510e000a2020202020200083";
scale = { x = 0.8; y = 0.8; };
config = {
eDP-1 = { crtc = 0; mode = "2256x1504"; position = "1080x716"; primary = true; rate = "60.00"; inherit scale; };
DP-4 = { crtc = 1; mode = "1920x1080"; position = "0x0"; rate = "60.00"; rotate = "left"; };
DP-1-3 = { crtc = 2; mode = "1280x1024"; position = "2885x506"; rate = "60.02"; };
};
in
{
main = {
fingerprint = {
inherit eDP-1;
};
config = { inherit (config) eDP-1; };
};
portable-second = {
fingerprint = {
inherit eDP-1 DP-4;
};
config = {
inherit (config) eDP-1 DP-4;
};
};
docked = {
fingerprint = {
inherit eDP-1 DP-1-3;
};
config = {
inherit (config) eDP-1 DP-1-3;
};
};
docked-alt = {
fingerprint = {
inherit eDP-1 DP-1-3 DP-4;
};
config = {
inherit (config) eDP-1 DP-1-3 DP-4;
};
};
};
console.font = lib.mkDefault "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
systemd.services.set-initial-backlight = {
description = "Sets the initial backlight state on startup";
wantedBy = [ "sys-devices-pci0000:00-0000:00:02.0-drm-card0-card0\\x2deDP\\x2d1-intel_backlight.device" ];
after = [ "system-systemd\\x2dbacklight.slice" "systemd-backlight@backlight:intel_backlight.service" ];
serviceConfig.Type = "oneshot";
script = "${lib.getExe pkgs.acpilight} -set 50";
};
nix.buildMachines = [
#{
# hostName = "infini-desktop";
# system = "x86_64-linux";
# supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
# protocol = "ssh-ng";
# maxJobs = 16;
# speedFactor = 8;
# sshUser = "remotebuild";
#}
{
hostName = "infini-dl360";
systems = [ "x86_64-linux" "aarch64-linux" ];
supportedFeatures = [ "nixos-test" "benchmark" "big-parallel" "kvm" ];
protocol = "ssh-ng";
maxJobs = 32;
speedFactor = 16;
sshUser = "remotebuild";
}
];
}