61 lines
1.9 KiB
Nix
61 lines
1.9 KiB
Nix
{ inputs, outputs, lib, config, pkgs, ... }: {
|
|
imports = [
|
|
# inputs.nixos-hardware.nixosModules.dell-xps-13-9310
|
|
# FIXME 2025-03-19
|
|
# https://github.com/NixOS/nixpkgs/pull/389711
|
|
# https://github.com/NixOS/nixpkgs/issues/389620
|
|
inputs.nixos-hardware.nixosModules.common-cpu-intel
|
|
inputs.nixos-hardware.nixosModules.common-pc-laptop
|
|
inputs.nixos-hardware.nixosModules.common-pc-ssd
|
|
##################################################
|
|
./hardware-configuration.nix
|
|
# ../disko/nvme.nix
|
|
../workstation
|
|
../workstation/kvm.nix
|
|
../workstation/games
|
|
../wm
|
|
../../home/work
|
|
];
|
|
networking.hostName = "loki";
|
|
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
|
|
|
|
roles = {
|
|
citrix.enable = true;
|
|
zoom.enable = true;
|
|
gui.enable = true;
|
|
kmscon.enable = true;
|
|
kvm.enable = true;
|
|
games.enable = true;
|
|
wine.enable = false;
|
|
tlp.enable = true;
|
|
};
|
|
wm = {
|
|
sway.enable = true;
|
|
kde.enable = false;
|
|
# cosmic.enable = false;
|
|
};
|
|
|
|
# FIXME 2025-03-19
|
|
# https://github.com/NixOS/nixpkgs/pull/389711
|
|
# https://github.com/NixOS/nixpkgs/issues/389620
|
|
|
|
# Includes the Wi-Fi and Bluetooth firmware for the QCA6390.
|
|
hardware.enableRedistributableFirmware = true;
|
|
|
|
# Requires at least 5.12 for working wi-fi and bluetooth.
|
|
boot.kernelPackages = lib.mkIf (lib.versionOlder pkgs.linux.version "5.12")
|
|
(lib.mkDefault pkgs.linuxPackages_latest);
|
|
|
|
# Touchpad goes over i2c.
|
|
# Without this we get errors in dmesg on boot and hangs when shutting down.
|
|
boot.blacklistedKernelModules = [ "psmouse" ];
|
|
|
|
# enable finger print sensor.
|
|
# this has to be configured with `sudo fprintd-enroll <username>`.
|
|
# services.fprintd.enable = true;
|
|
# services.fprintd.tod.enable = true;
|
|
# services.fprintd.tod.driver = pkgs.libfprint-2-tod1-goodix;
|
|
|
|
# Allows for updating firmware via `fwupdmgr`.
|
|
services.fwupd.enable = true;
|
|
}
|