2021-10-18 18:26:57 +02:00
|
|
|
|
# Edit this configuration file to define what should be installed on
|
|
|
|
|
# your system. Help is available in the configuration.nix(5) man page
|
|
|
|
|
# and in the NixOS manual (accessible by running ‘nixos-help’).
|
|
|
|
|
|
|
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
2021-10-19 11:16:42 +02:00
|
|
|
|
let sources = import ../../nix/sources.nix;
|
|
|
|
|
in {
|
2021-10-18 18:26:57 +02:00
|
|
|
|
imports =
|
|
|
|
|
[ # Include the results of the hardware scan.
|
2021-10-19 11:16:42 +02:00
|
|
|
|
"${sources.nixos-hardware}/lenovo/thinkpad/x1"
|
2021-10-18 18:26:57 +02:00
|
|
|
|
../physical/x11-hardware-config.nix
|
|
|
|
|
../roles/workstation.nix
|
|
|
|
|
|
|
|
|
|
];
|
|
|
|
|
yorick.lumi-vpn.enable = lib.mkForce false;
|
|
|
|
|
|
|
|
|
|
boot.loader.systemd-boot.enable = true;
|
|
|
|
|
boot.loader.efi.canTouchEfiVariables = true;
|
|
|
|
|
boot.zfs.requestEncryptionCredentials = true;
|
|
|
|
|
|
2021-10-19 11:16:42 +02:00
|
|
|
|
networking.hostName = "smithers";
|
2021-10-18 18:26:57 +02:00
|
|
|
|
networking.wireless.iwd.enable = true;
|
|
|
|
|
networking.hostId = "54a8968e";
|
|
|
|
|
|
2021-10-20 11:45:16 +02:00
|
|
|
|
hardware.bluetooth.enable = true;
|
|
|
|
|
services.fprintd.enable = true;
|
2021-10-19 11:16:42 +02:00
|
|
|
|
system.stateVersion = "21.05";
|
2021-10-18 18:26:57 +02:00
|
|
|
|
boot.kernelPackages = pkgs.linuxPackages_latest; # new hardware
|
|
|
|
|
|
2021-10-20 11:45:16 +02:00
|
|
|
|
boot.initrd.availableKernelModules = [ "i915" ];
|
|
|
|
|
boot.loader.timeout = 0;
|
|
|
|
|
boot.kernelParams = ["i915.fastboot=1" "quiet"];
|
|
|
|
|
#boot.plymouth.enable = true;
|
2021-10-18 18:26:57 +02:00
|
|
|
|
}
|