omniflake/hosts/nova/default.nix

54 lines
1.2 KiB
Nix

{ config, lib, ... }:
{
networking.hostName = "nova";
imports = [
./hardware-configuration.nix
../../users/alt.nix
../../users/guest.nix
../../system
../../system/desktop
../../system/desktop/gnome.nix
# ../../system/desktop/cast.nix
../../system/desktop/ergodox-udev.nix
../../system/desktop/steam.nix
../../system/desktop/yubikey-pam.nix
];
boot.loader.systemd-boot.enable = true;
boot.loader.efi.canTouchEfiVariables = true;
boot.kernelModules = [ "v4l2loopback" ];
boot.kernelParams = [ "psmouse.elantech_smbus=0" ];
boot.extraModulePackages = [ config.boot.kernelPackages.v4l2loopback ];
boot.initrd.luks.devices."cryptroot".allowDiscards = true;
fileSystems."/".options = [
"compress=zstd"
"discard=async"
];
fileSystems."/nix".options = [
"compress=zstd"
"noatime"
"discard=async"
];
fileSystems."/home".options = [
"compress=zstd"
"discard=async"
];
swapDevices = [
{
device = "/swapfile";
size = 8 * 1045;
}
];
networking.useDHCP = lib.mkDefault true;
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
hardware.trackpoint.enable = true;
}