helm/hosts/curve/configuration.nix

52 lines
1.6 KiB
Nix
Raw Permalink Normal View History

2021-10-10 01:31:00 -07:00
{
2021-10-10 06:59:41 -07:00
imports = [ ./hardware-configuration.nix ];
2021-10-10 01:31:00 -07:00
boot.loader.grub.enable = true;
boot.loader.grub.version = 2;
# Define on which hard drive you want to install Grub.
boot.loader.grub.device = "/dev/sda"; # or "nodev" for efi only
# Minimal list of modules to use the EFI system partition and the YubiKey
boot.initrd.kernelModules = [ "vfat" "nls_cp437" "nls_iso8859-1" "usbhid" ];
2022-04-11 00:31:29 -07:00
2021-10-10 01:31:00 -07:00
# Enable support for the YubiKey PBA
boot.initrd.luks.yubikeySupport = true;
2022-04-11 00:31:29 -07:00
2021-10-10 01:31:00 -07:00
# Configuration to use your Luks device
boot.initrd.luks.devices = {
"crypthome" = {
device = "/dev/sda2";
preLVM = true; # You may want to set this to false if you need to start a network service first
yubikey = {
slot = 2;
twoFactor = true; # Set to false if you did not set up a user password.
storage = {
device = "/dev/sda1";
};
};
2022-04-11 00:31:29 -07:00
};
2021-10-10 01:31:00 -07:00
};
2022-04-11 00:31:29 -07:00
networking.hostName = "curve";
2021-10-10 08:43:18 -07:00
#networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.
time.timeZone = "Australia/Brisbane";
networking.useDHCP = false;
networking.interfaces.enp0s31f6.useDHCP = true;
networking.interfaces.wlp3s0.useDHCP = true;
networking.wireless.enable = true;
2022-04-11 00:31:29 -07:00
networking.wireless.interfaces = [ "wlp3s0" ];
2021-12-27 00:27:49 -08:00
networking.wireless.userControlled.enable = true;
2021-10-10 08:43:18 -07:00
# Select internationalisation properties.
i18n.defaultLocale = "en_US.UTF-8";
# console = {
# font = "Lat2-Terminus16";
# keyMap = "us";
# };
sound.enable = true;
hardware.pulseaudio.enable = true;
services.xserver.libinput.enable = true;
2021-10-10 01:31:00 -07:00
}