2024-12-04 20:06:57 +01:00
|
|
|
{ config, lib, pkgs, inputs, specialArgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
|
|
./hardware-configuration.nix
|
|
|
|
|
|
|
|
./services/btrfs.nix
|
|
|
|
./services/docker.nix
|
2024-12-05 18:25:52 +01:00
|
|
|
./services/keybase.nix
|
2024-12-04 20:06:57 +01:00
|
|
|
./services/libvirtd.nix
|
|
|
|
./services/logiops.nix
|
|
|
|
./services/tailscale.nix
|
2024-12-05 18:25:52 +01:00
|
|
|
./services/thermald.nix
|
2024-12-05 18:27:30 +01:00
|
|
|
./services/tlp.nix
|
2024-12-04 20:06:57 +01:00
|
|
|
|
|
|
|
./testconfig.nix
|
|
|
|
];
|
|
|
|
|
|
|
|
sops.age.keyFile = "/var/lib/sops/age-key.txt";
|
|
|
|
|
|
|
|
system.stateVersion = "24.11";
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
|
|
|
boot.binfmt.emulatedSystems = [
|
|
|
|
"x86_64-windows"
|
|
|
|
"aarch64-linux"
|
|
|
|
"armv7l-linux"
|
|
|
|
"i686-linux"
|
|
|
|
];
|
|
|
|
|
|
|
|
nix.settings.system-features = [
|
|
|
|
"kvm"
|
|
|
|
"benchmark"
|
|
|
|
"big-parallel"
|
|
|
|
"nixos-test"
|
|
|
|
];
|
|
|
|
|
|
|
|
i18n.extraLocaleSettings = {
|
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
};
|
|
|
|
|
|
|
|
console = {
|
|
|
|
earlySetup = true;
|
|
|
|
font = "${pkgs.terminus_font}/share/consolefonts/ter-132n.psf.gz";
|
|
|
|
packages = with pkgs; [ terminus_font ];
|
|
|
|
};
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.consoleMode = "1";
|
|
|
|
|
|
|
|
machineVars = {
|
|
|
|
headless = false;
|
|
|
|
gaming = true;
|
|
|
|
development = true;
|
|
|
|
creative = true;
|
2024-12-05 19:43:58 +01:00
|
|
|
wayland = true;
|
2024-12-04 20:06:57 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
networking = {
|
|
|
|
hostName = "xps16";
|
|
|
|
networkmanager.enable = true;
|
|
|
|
firewall.enable = true;
|
|
|
|
# hostId = "f0660cef";
|
|
|
|
};
|
|
|
|
|
|
|
|
services = {
|
|
|
|
xserver.upscaleDefaultCursor = true;
|
|
|
|
xserver.dpi = 192;
|
2024-12-04 23:02:08 +01:00
|
|
|
displayManager.sddm = {
|
|
|
|
enableHidpi = true;
|
|
|
|
settings = {
|
|
|
|
X11.ServerArguments = "-nolisten tcp -dpi 192";
|
|
|
|
};
|
|
|
|
};
|
2024-12-04 23:00:57 +01:00
|
|
|
libinput.touchpad.accelSpeed = "0.5";
|
2024-12-08 13:44:56 +01:00
|
|
|
blueman.enable = true;
|
2024-12-04 20:06:57 +01:00
|
|
|
};
|
|
|
|
|
2024-12-08 14:59:34 +01:00
|
|
|
# ipu6 does not compile on latest yet
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_6_11;
|
|
|
|
|
2024-12-04 20:06:57 +01:00
|
|
|
hardware = {
|
|
|
|
bluetooth.enable = true;
|
|
|
|
enableRedistributableFirmware = true;
|
|
|
|
keyboard.zsa.enable = true;
|
|
|
|
sane.enable = true;
|
|
|
|
graphics = {
|
|
|
|
enable = true;
|
|
|
|
enable32Bit = true;
|
|
|
|
};
|
2024-12-08 14:59:34 +01:00
|
|
|
ipu6 = {
|
|
|
|
enable = true;
|
|
|
|
platform = "ipu6epmtl";
|
|
|
|
};
|
2024-12-04 20:06:57 +01:00
|
|
|
};
|
|
|
|
}
|