From 0200ef58246e45bc28412c57dcd6f6cec41f47a9 Mon Sep 17 00:00:00 2001 From: sefidel Date: Sun, 20 Feb 2022 11:13:04 +0900 Subject: feat(nixos): add beta --- nixos/beta/hardware-configuration.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nixos/beta/hardware-configuration.nix (limited to 'nixos/beta/hardware-configuration.nix') diff --git a/nixos/beta/hardware-configuration.nix b/nixos/beta/hardware-configuration.nix new file mode 100644 index 0000000..9191ca6 --- /dev/null +++ b/nixos/beta/hardware-configuration.nix @@ -0,0 +1,26 @@ +{ config, lib, pkgs, modulesPath, ... }: + +{ + boot.initrd.availableKernelModules = [ "xhci_pci" "usbhid" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888"; + fsType = "ext4"; + }; + + swapDevices = [ ]; + + # The global useDHCP flag is deprecated, therefore explicitly set to false here. + # Per-interface useDHCP will be mandatory in the future, so this generated config + # replicates the default behaviour. + networking.useDHCP = lib.mkDefault false; + networking.interfaces.eth0.useDHCP = lib.mkDefault true; + networking.interfaces.wlan0.useDHCP = lib.mkDefault true; + + powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand"; + # high-resolution display + hardware.video.hidpi.enable = lib.mkDefault true; +} -- cgit 1.4.1