2024-02-04 19:30:52 -07:00
|
|
|
{ pkgs
|
|
|
|
, ...
|
|
|
|
}:
|
|
|
|
let
|
|
|
|
pubKeys = [
|
|
|
|
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIO7v+/xS8832iMqJHCWsxUZ8zYoMWoZhjj++e26g1fLT europa"
|
|
|
|
];
|
|
|
|
in
|
|
|
|
{
|
|
|
|
_module.args.isUnstable = true;
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
];
|
|
|
|
|
2024-02-07 08:14:51 -07:00
|
|
|
hardware = {
|
|
|
|
rtl-sdr.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
console.font = "${pkgs.terminus_font}/share/consolefonts/ter-v32n.psf.gz";
|
|
|
|
console.earlySetup = true;
|
2024-02-04 19:30:52 -07:00
|
|
|
|
|
|
|
boot = {
|
|
|
|
loader = {
|
|
|
|
systemd-boot.enable = true;
|
|
|
|
efi.canTouchEfiVariables = true;
|
|
|
|
};
|
|
|
|
|
2024-03-11 09:35:49 -06:00
|
|
|
kernelPatches = [
|
|
|
|
{
|
|
|
|
name = "pwm-lpss";
|
|
|
|
patch = null;
|
|
|
|
extraConfig = ''
|
|
|
|
PWM y
|
|
|
|
PWM_LPSS m
|
|
|
|
PWM_LPSS_PCI m
|
|
|
|
PWM_LPSS_PLATFORM m
|
|
|
|
PWM_SYSFS y
|
|
|
|
'';
|
|
|
|
}
|
|
|
|
];
|
|
|
|
|
2024-08-16 08:58:31 -06:00
|
|
|
kernelPackages = pkgs.linuxPackages_6_6;
|
2024-02-04 19:30:52 -07:00
|
|
|
kernelParams = [
|
|
|
|
"fbcon=rotate:1"
|
2024-02-07 08:14:51 -07:00
|
|
|
"gpd-pocket-fan.speed_on_ac=0"
|
|
|
|
"video=DSI-1:panel_orientation=right_side_up"
|
2024-02-04 19:30:52 -07:00
|
|
|
];
|
|
|
|
|
2024-03-11 09:35:49 -06:00
|
|
|
kernelModules = [ "btusb" "kvm-intel" "i915" "pwm-lpss" "pwm-lpss-platform" ];
|
2024-02-04 19:30:52 -07:00
|
|
|
|
|
|
|
initrd = {
|
|
|
|
kernelModules = [
|
|
|
|
"g_serial"
|
|
|
|
"bq24190_charger"
|
|
|
|
"i915"
|
2024-03-11 09:35:49 -06:00
|
|
|
"pwm-lpss"
|
|
|
|
"pwm-lpss-platform"
|
2024-02-04 19:30:52 -07:00
|
|
|
];
|
|
|
|
|
|
|
|
availableKernelModules = [
|
|
|
|
"xhci_pci"
|
|
|
|
"dm_mod"
|
|
|
|
"nvme"
|
|
|
|
"usbhid"
|
|
|
|
"usb_storage"
|
|
|
|
"sd_mod"
|
|
|
|
"sdhci_acpi"
|
|
|
|
"sdhci_pci"
|
|
|
|
"rtsx_pci_sdmmc"
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
2024-02-07 08:14:51 -07:00
|
|
|
|
2024-02-04 19:30:52 -07:00
|
|
|
nixpkgs.config.allowUnsupportedSystem = true;
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "orcim";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall = {
|
|
|
|
enable = true;
|
|
|
|
allowedTCPPorts = [ 22 ];
|
|
|
|
checkReversePath = "loose";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
alacritty
|
|
|
|
direwolf
|
|
|
|
polybar
|
|
|
|
python3
|
|
|
|
python3Packages.nomadnet
|
|
|
|
python3Packages.rns
|
|
|
|
rofi
|
|
|
|
rtl-sdr
|
|
|
|
tncattach
|
|
|
|
];
|
|
|
|
|
|
|
|
kde.enable = true;
|
|
|
|
|
|
|
|
services = {
|
2024-02-07 09:50:34 -07:00
|
|
|
xserver = {
|
|
|
|
dpi = 200;
|
|
|
|
xrandrHeads = [{
|
|
|
|
output = "DSI-1";
|
|
|
|
primary = true;
|
|
|
|
monitorConfig = ''
|
|
|
|
Option "Rotate" "right"
|
|
|
|
'';
|
|
|
|
}];
|
|
|
|
};
|
2024-02-04 19:30:52 -07:00
|
|
|
power-profiles-daemon.enable = false;
|
|
|
|
tlp = {
|
|
|
|
enable = true;
|
2024-03-06 20:57:33 -07:00
|
|
|
settings = {
|
|
|
|
DISK_DEVICES = "mmcblk0";
|
|
|
|
DISK_IOSCHED = "deadline";
|
|
|
|
WIFI_PWR_ON_AC = false;
|
|
|
|
WIFI_PWR_ON_BAT = false;
|
|
|
|
};
|
2024-02-04 19:30:52 -07:00
|
|
|
};
|
|
|
|
fwupd = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
users = {
|
|
|
|
users = {
|
|
|
|
root = { openssh.authorizedKeys.keys = pubKeys; };
|
|
|
|
qbit = {
|
|
|
|
openssh.authorizedKeys.keys = pubKeys;
|
|
|
|
extraGroups = [ "dialout" "libvirtd" "plugdev" ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
system.stateVersion = "22.11";
|
|
|
|
}
|